Recent content by Sub Zero

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

  1. S

    Mosquitto on AsusWRT firmware / Asus RT-AC68U Router

    OK so I have had many sleeps now since I did all this and have forgotten 99% of what I did (lucky it is here to reference). Quick question if I update my AsusWRT to the latest version will it wipe out the files I created / things I installed, or will it just go over the top of the existing...
  2. S

    Mosquitto on AsusWRT firmware / Asus RT-AC68U Router

    Doesn't always have to be used for home automation, can be used for other things let collecting temperatures from all around your house in one convenient spot. Watch the video you might be surprised what you think you can use it for. He explains how his house works in the start but the...
  3. S

    Mosquitto on AsusWRT firmware / Asus RT-AC68U Router

    Check this guy out he lives down the road from me (about 2000 klms away) he describes the relationship between MQTT and OpenHAB beautifully. He makes home automation sound like a walk in the park. He explains how MQTT operates like a whiteboard for sending and receiving messages from devices.
  4. S

    Mosquitto on AsusWRT firmware / Asus RT-AC68U Router

    Several people have tried to get their routers to directly talk to OpenHAB, but have had dropouts and irregular activity (it can be complex to setup properly and you have to worry about bindings etc). Whereas I wanted to get the router to talk directly to Mosquitto to give it greater stability...
  5. S

    Mosquitto on AsusWRT firmware / Asus RT-AC68U Router

    Finally it is done! #!/bin/sh # Asus2MQTT V1.0 - coded by Paul Murray - 2019. Credit to the numerous Linux websites I looked at to get code examples (unfortunately very few examples actually worked as expected on AsusWRT) # Props also go out to ColinTaylor on the SNB Forums, for code...
  6. S

    Mosquitto on AsusWRT firmware / Asus RT-AC68U Router

    Still trying to get this to work. Have a few things working, but AsusWRT doesn't appear to support many of the standard Linux script commands, or if they do work they seem to be a bit hit and miss and only work when they feel like it. Going to keep trying to make it work, but I feel like I am...
  7. S

    Mosquitto on AsusWRT firmware / Asus RT-AC68U Router

    Cool. There are little differences like End If vs fi but it is relatively easy to work out the syntax if you think about it for two seconds. Thanks for all your help I hope to have this up and working by the end of the day.
  8. S

    Mosquitto on AsusWRT firmware / Asus RT-AC68U Router

    Rebooted the router and the problem has gone away :D Now I have two lots of notifications coming in via the syslog. One that tells me almost instantly when the network changes from 2.4 to 5.0 and back to 2.4 and the second lot from the script that tells me that it is disconnected one frequency...
  9. S

    Mosquitto on AsusWRT firmware / Asus RT-AC68U Router

    Yes I see it there in the router syslog. Woohoo a small step forward, just need to rewrite the whole code to get it to push messages to Mosquitto. Quick question, my mobile phone is not letting me now connect via 2.4Ghz, it keeps booting me telling me I don't have permission. I wasn't having...
  10. S

    Mosquitto on AsusWRT firmware / Asus RT-AC68U Router

    It's probably closer to 10 minutes of experience over the last 20 years. I load something up with Linux every couple of years to play with it for a few hours before I become frustrated and put Windows back on. However you need to pick your fights and if so many people have tried it would be...
  11. S

    Mosquitto on AsusWRT firmware / Asus RT-AC68U Router

    Thanks that's a big help. The only reason I am trying to get AsusWRT working is because OpenWRT appears to have issues with 2.4Ghz on the Asus RT-AC68U router. I'll abandon trying to get iw working for now (since I have just learned there is a working alternative in wl) and see if I can get it...
  12. S

    Mosquitto on AsusWRT firmware / Asus RT-AC68U Router

    OK yet another sleep seems to have helped... Just staring at my last error message "/bin/sh: pkg-config: not found" gave me an idea, what if I need pkg-config as an application installed, since every time I see not found it generally means some software is missing? opkg list pkg* yep there it...
  13. S

    Mosquitto on AsusWRT firmware / Asus RT-AC68U Router

    Run into a bit of a problem... Downloaded iw-5.0.1.tar.gz from https://git.kernel.org/pub/scm/linux/kernel/git/jberg/iw.git I have never used a tarball before so I found some instructions. https://www.maketecheasier.com/install-software-from-a-tarball-in-linux/ I copied over the tarball to the...
  14. S

    Mosquitto on AsusWRT firmware / Asus RT-AC68U Router

    Managed to send a message from the router with a test.sh #!/bin/sh mosquitto_pub -h 192.168.1.50 -t /AsusWRTwifi/status/mac- -m "router is sending a test message" The iw event | \ that was throwing the error appears to be important... https://wireless.wiki.kernel.org/en/users/documentation/iw...
  15. S

    Mosquitto on AsusWRT firmware / Asus RT-AC68U Router

    I made a copy of the script in /jffs/scripts and have been testing it from there, going to be much harder to diagnose the script without a proper IDE. I got the script pasted over and the only thing that caused an error was the line iw event | \ I don't know if iw is a function call, or being...
Top