Git Product home page Git Product logo

Comments (7)

weberbox avatar weberbox commented on May 24, 2024

Yes this is a bug. It is missing the onesignal toggle. I will need to update and request a PR . Hopefully things like this will be less likely to happen since I can now work off the same branch and not need to copy over from a different one.

if('onesignal_enabled' in response):
			if(response['onesignal_enabled'] == 'on'):
				settings['onesignal']['enabled'] = True
		else:
			settings['onesignal']['enabled'] = False

As far as the app connecting that should work regardless of the onesignal setting in the server being on or off. You can toggle onesignal off and on via the app once connected as that will send raw json to enable/disable it.

If the app is not connecting it is something else. Is there any error when trying to connect? It should show why it cannot connect during the setup.

I just connected the app to my fresh install on my zero w sitting at my desk without any issue and toggled onesignal off and on from the app.

from pifire-android.

nebhead avatar nebhead commented on May 24, 2024

Ok, let me try again. Maybe I'm doing the sequence wrong. I had a red bar at the top of the screen when I first attempted to install, however I managed to enable OneSignal by editing the settings.json directly. Then it seemed the app was connecting, but now it seems to not be fetching data. No red bar this time. Anyway, I'll try again and see if I can get some screen captures.

from pifire-android.

weberbox avatar weberbox commented on May 24, 2024

Ok let me know what you find so we can get it up and working. The app does work without OneSignal as that is only for push notifications. If you download the non firebase version is does not even have the onesignal code at all.

The rest of the functions are all just done through json communication over websockets. The app supports https with both self signed and ca signed. If the server uses self signed then the cert has to be imported into the Android key store or the app will not trust it.

Http should work with an IP or a dns address.

from pifire-android.

nebhead avatar nebhead commented on May 24, 2024

Just tried the Firebase version of the app (was using the non-firebase version previously), and set it up using my old Nexus 6P, and it seems to be working fine now. The Nexus 7 tablet which I was initially using, actually hung when trying to use the QR code then shut down. :( I think that's just due to the fact that it's super old. Anyway, it seems to be working again. Thanks for the help!

from pifire-android.

weberbox avatar weberbox commented on May 24, 2024

Ok great!! I will check into the QR code scanning. I only have one Android tablet and it seemed to be working ok but sometimes cameras on tablets can act strange especially old ones.

from pifire-android.

nebhead avatar nebhead commented on May 24, 2024

Yep, and not to mention, I have lineage OS running on that tablet, so it's a mixed bag of what hardware works and what doesn't. The WiFi seems flaky too, which is likely the cause of the disconnects. Anyway, the Nexus 6P seems to be just fine, so I'll chalk it up to old hardware with sketchy OS.

from pifire-android.

nebhead avatar nebhead commented on May 24, 2024

from pifire-android.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.