Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

xKing

Administrators
  • Joined

  • Last visited

Everything posted by xKing

  1. huh? No, just configure my pc as a proxy on iPhone for that session
  2. I've used Windows app called "Fiddler" previously (and set it as proxy on my iPhone) to sniff out the exchange between MyQ app and their server, not sure if that technique still works, give it a try.
  3. Thanks jshank! Reasonable pull requests are always welcome, however I'm kinda waiting to get my hands on a good 5.0.X firmware so I can re-write the isynnode to be a Node Server
  4. btw, I have a cgi script if you like running under apache https://github.com/exking/myq-cgi and it uses different token save filename
  5. you can fetch the fixed version here https://github.com/exking/myq-garage/ I've also submitted a pull request to the original repository so waiting on Mr. Einstein.42's approval to do so.
  6. That does not look like a full path, think you missing / in front ('/home/pi/node/config.ini')
  7. Awesome! If it runs good for some time - you can probably bump it up to like 45 or 60 minutes and let it handle re-authentication.
  8. you can pull the updated myq-garage.py from here https://github.com/exking/myq-garage/ or wait for Einstein.42 to review the change
  9. I've added a retry logic, script would try to re-authenticate once if saved token did not work. Waiting for Einstein.42's approval to merge.
  10. Well, if TOKENTTL is 8 minutes - it will save the auth token and only use it for 8 minutes, after that it will just fetch a new one. Since MyQ web site does not return token validity period - we could only assume how long it's good for... Apparently 60 is way too much. We'll need to correct token caching logic a bit.
  11. Interesting, thanks! Try setting TOKENTTL to 8 then Sent from my iPhone using Tapatalk
  12. Hm... does it happen immediately or after some time? Like 30 minutes? Maybe TOKENTTL value of 60 is too big, try setting it to 30? I will look at the script again, may need to enhance it to re-fetch the token on 1st error with the saved one.
  13. hm... so what is the exact problem you experiencing when the file IS actually there like on the output above?... P.S. If you set TOKENTTL=0 in the config - it won't even create the file, but you loosing the token caching
  14. do you mean /tmp/myqtoken.json? Is it getting created as root? can you show ls -la /tmp at that time? do you call myq-garage from anywhere else except the nodeLink? maybe crontab or something? you'll need to find out what calls script as root.
  15. change your line to look like su pi -c "mono /home/pi/node/NodeLink.exe" & make sure config.xml is pi owned so you won't prevent NodeLink from updating it of course.
  16. yup, that's the cause. How do you start NodeLink ?
  17. do the ps -ef | grep mono bet your dscServer is running as root
  18. Is myqtoken.json getting root ownership? If yes - make sure you don't have script run as root anywhere. Crontab maybe (don't use /etc/crontab, run crontab -e as pi instead)? dscServer?
  19. Perhaps you invoking the script with dscServer which you run as root?... Make sure to run it as pi (you may need to change it's config.xml ownership to pi as well) I would recommend against running anything which is not a system service as root.
  20. Yup, what Jimbo said Please don't run the script as root. BTW setting 755 vs 644 makes no sense since you just adding eXecutable bit on the file which is useless on text.
  21. yeah, change to pi (chown -R pi:pi /home/pi/node) I don't see the need to run anything as root
  22. sounds like a permissions problem? how does /home/pi/node/logs/myq-garage.log file permissions/ownership look like? could it be that you've run it as root one day so the log is root owned and can't be written by the "pi" user?
  23. Does the status work for you? [andrey@penguin ~/src/GitHub/Einstein42/myq-garage]$ ./myq-garage.py status Garage Door is Closed. Last changed at Sat 25 Feb 2017 10:33:04
  24. until next time they change the API
  25. Well, find the line config.read('config.ini') and change it to the absolute path like config.read('/home/pi/myq-garage/config.ini') so you could still use the config.ini App ID is still the same and there is no way to figure it out automatically rather than trace what real iOS or Android app sends. P.S. Please use "git pull" to fetch the updated version from the git hub, disregard the zip file please.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.