MQTT – Finally!

After a few months of off and on again trying to get my data parse, collect and displayed the way I wanted it. I finally found a little tid bit of info that pointed me in the right direction.

rtl_433 -F “mqtt://192.168.1.15:1883,retain=0,devices=Pipedream/TempSensors/[protocol]/[id]” -M utc

As you can see I am using rtl_433 to receive data from various sensors around the buildings. It gets sent to our MQTT Broker for redistribution to computers that have subscribed to selected topics. Since we have a few sensors of the same model we use [protocol] to group those sensor together, but each sensor has its own feed.

Funny thing is we are now finding sensors, we didn’t know about. We will be watching the data being collected and see if we can figure it out.

Below are the sensors we need to figure out (what they are) 211 and 17. All the rest (so far) we can already id and parse the data correctly.

Finally Posting Data from 433mhz

Would not believe the hoops I had jumped thru to get the data where I wanted it. First 433mhz posts to MQTT, then I have a web page running in a loop, on an old Xserve that reads the data from MQTT. After reading data, it parses the data into CSV files, one for each device. Another web page then uses CSV data to create data blocks.

Could not use CSV directly from MQTT because it would just stop working after the file got so big (32mb I think).. JSON has the same issue, but a bit larger 64mb.

Data is not 100% real time, but it is only, at most 2 minutes or so old for each sensor. Each sensors sends data at its own rate. The receiver, caches and process the data, in batches every 10 seconds. Guess if data comes in during that time it is possible it could get lost, but I don’t think so.

Enjoyed working on this. Really hope to add more sensors and make the data look more sci-fi’ish. But that is for a later date.

UPDATE: In this post, we were using FEEDS by Weaver’s Space, in RapidWeaver. Turned out not to be the best solution for the problem

MQTT – Finally

Finally able to Subscribe and Post Data to a MQTT broker/server.

As always, examples found on the internet, are incomplete, or are just copies of someone else’s post. One of the most popular examples has both Post and Subscribe in one, but of course doesn’t really work without a great deal of review.

Basically you have a server, what they call a broker, that receives all the MQTT traffic., then it allows others to subscribe and monitor the data being posted.

So my setup has a rtl_433 receiver that collects all the sensor data from 433 devices and parses it. Sensors include weather stations, remote temperature, door switches and motion detectors. At present all I am handling is the temperature sensors. Each sensor has an ID which I track, noting it location on the property. Then they also have temperature (of course) and humidity. The sensors sends a lot of other data, but that is all I really need. I then send the data back to broken parsed, into another channel for my use..

The coal is to parse the incoming data into a control panel that will display sensor data, like a dashboard. Basement sensor always in same location, for example. Graphically.

Sensor appear to just send data in a timed manner, once every few minutes. They don’t care if anyone receives it, just throw out over the airwaves. The SDR receives the data, parses it, the Posts to the Broker. The Broken in turn basically doesn’t the same thing as the sensor, it just rebroadcasts the data for anyone that has Subscribe to that Topic. My webpage Subscribes to the Topic and reparses the data and displays it.

Getting there!

Problems with RING, again!

A few months ago, after having more problems with one of the battery power security cameras, I decided to replace it with a powered unit. Little more effort to install, but I hoped it would be worth it..

Ring Floodlight Cam Wired Plus

It worked fine, almost for a month. It would appear on the Web and iPhone versions of RING App, but not on the computer version. I shrugged it off and just used it as is, until about 2 weeks ago, the camera stopped working.

After an hour of attempting to rejoin the network I called Ring, always a pleasure (sic). Finally after an hour of retrying everything I ready did, I was told it was my network, specifically my wifi. So all the other wireless Ring hardware continues to work, but not this NEW device. Tried replacing access points and wifi networks. Nope still not happy. Ended up having to install a totally new wifi network and a new device, to finally get the camera to appear on my iPhone and Web, it still doesn’t appear in the app.

For the price you pay for these things you’d expect them to last longer, why did they update the firmware to kick it off my network.. beyond me..

And they try to upsell, or newer stuff.. sorry if I can keep the older stuff working I aint buying all new AGAIN.

So don’t think I’ll be buy more ring equipment. Will keep you informed as to what replaces it. Any suggestions?

Expanding Network

After having to run cords across the floor to get to our test bench, we’ve opted to have new jacks installed.. IN WALLS.. A little more work, but much neater for the long run. New cat6 wire, all the way back to the gig switch.. NICE..

Thanks for all those that helped in the effort.

Synology NAS DS419Slim

Provide information and insights into new NAS. (TO DO)

DS419Slim

After a few months using the drive, I can now report on its overall operation.

One, don’t let the photos on Amazon fool you, this is a MINI NAS which uses laptop drives, not the normal desktop drives. Which was surprising when it arrived. Plus the description said it came with drives, but didn’t. Amazon likes to embellish its descriptions and mix all the “like”/”similar” drives. So don’t bother reading them, get your reviews elsewhere.

After the second order with drives arrived, install and setup was easy. Left the drives formatting/partitioning overnight. It comes with internet access to manage, configure and monitor.. HOWEVER, it isn’t free, SURPRISE. Locally accessing, does work and is free.

There are two pieces of software that can be installed on Synology Cloud Station Backup and Synology Cloud Station Drive. Station Backup does a backup as is per configured on each station. Station Drive syncs file as they are opened and closed. Users complained of slower computers, but was kind of expected.

You log into the NAS with each users account and can recover files easily. I don’t expect users to be able to do this.