Community discussions

MikroTik App
 
bonnecomm
newbie
Topic Author
Posts: 32
Joined: Sat May 30, 2009 8:29 am

USB Outdoor temperature sensor

Wed Apr 03, 2019 2:31 am

I want a temperature sensor that can plug into the USB port on an RB750UP and allow me to, via a script, read the temperature. Primarily, I want to read the temperature inside the equipment shed at a remote tower to make sure it hasn't gotten too cold (meaning the heater is busted) or too hot (meaning the AC is busted). But I thought, if the cable is long enough, I could also monitor the outside temperature at some sites too. While searching online for it, I found this (https://www.draytek.com/products/usb-thermometer/). It doesn't say it's compatible with MikroTiks so I'll assume it isn't. Are there compatible USB temperature sensors for MikroTik?
 
User avatar
vecernik87
Forum Veteran
Forum Veteran
Posts: 736
Joined: Fri Nov 10, 2017 8:19 am

Re: USB Outdoor temperature sensor

Wed Apr 03, 2019 9:38 am

compatible with particular brand = proprietary protocol, almost certainly not compatible with anything else. Unfortunately, there is no accessory like this for mikrotik.

Your best chance would be little arduino board, weather sensor (for example BME280), serial-to-usb converter, few wires, solder and bit of geekiness.
Once you have HW, all you need to do is program arduino to report data from sensor through its serial interface and poll the data through scheduler of your routerboard. However, do not expect it will appear as some system variable within the system itself. You can poll it and then it will be your responsibility to log/save/export it.
 
RogerWilco
Member
Member
Posts: 395
Joined: Wed Feb 16, 2011 6:02 am
Location: Australia

Re: USB Outdoor temperature sensor

Sun Apr 07, 2019 6:23 am

Another way that you might call dodgy is to just run a script to poll the temperature monitor in the RB750UP.
Not very accurate since it is measuring PCB temp so you'd need to factor that in.
 
Pea
Member Candidate
Member Candidate
Posts: 225
Joined: Fri Jul 17, 2015 11:07 pm
Location: Czech

Re: USB Outdoor temperature sensor

Sun Apr 07, 2019 8:54 am

Try searching for "PoE web ethernet temperature sensor" instead or similar ready solutions.
 
User avatar
ErfanDL
Member
Member
Posts: 331
Joined: Thu Sep 29, 2016 9:13 am
Location: IRAN
Contact:

Re: USB Outdoor temperature sensor

Sun Apr 07, 2019 9:08 am

use IoT based system. I'm using raspberrypi
Screenshot_2019-04-07-10-37-16.jpg
Sent from my C6833 using Tapatalk


You do not have the required permissions to view the files attached to this post.
 
neutronlaser
Member
Member
Posts: 411
Joined: Thu Jan 18, 2018 5:18 pm

Re: USB Outdoor temperature sensor

Tue Apr 16, 2019 1:05 am

The Dude can monitor, graph and alert on your board's internal temperature.
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 1806
Joined: Sat Dec 24, 2016 11:17 am
Location: jo.overland at gmail.com

Re: USB Outdoor temperature sensor

Thu Apr 18, 2019 10:11 am

Same can Splunk (full version) , see my signatur link for more info.

PS this Router is stored in a place where the sun heats its up in the day time :)
Temperature.jpg
You do not have the required permissions to view the files attached to this post.
 
How to use Splunk to monitor your MikroTik Router(s)

MikroTik->Splunk
 
 
isabella54
just joined
Posts: 5
Joined: Mon Apr 01, 2019 3:48 pm

Re: USB Outdoor temperature sensor

Sun May 12, 2019 10:38 am

The whole article and discussion sound good for me.
 
User avatar
shailparmar
Frequent Visitor
Frequent Visitor
Posts: 89
Joined: Wed Aug 20, 2014 6:07 pm
Location: INDIA
Contact:

Re: USB Outdoor temperature sensor

Sun Apr 26, 2020 8:30 pm

use IoT based system. I'm using raspberrypi
Screenshot_2019-04-07-10-37-16.jpg

Sent from my C6833 using Tapatalk
Canyou share more information about this setup?
 
antonsb
MikroTik Support
MikroTik Support
Posts: 212
Joined: Sun Jul 24, 2016 3:12 pm
Location: Riga, Latvia

Re: USB Outdoor temperature sensor

Tue May 05, 2020 11:43 am

This can be done from RouterOS as well.
Make simple Arduino||STM32 board with temperature sensor attached (DHT22 for example), that listens to serial input and answers with sensor data.
In RouterOS if serial device is attached - disabled ppp-client is created. Make simple script, that does at-chat to this port and sends data, to database (Grafana for example).

If anyone is interested we can make small write up with examples for this use case.
 
WeWiNet
Member
Member
Posts: 417
Joined: Thu Sep 27, 2018 4:11 pm

Re: USB Outdoor temperature sensor

Wed May 06, 2020 12:12 pm

+1
I would be defiently interested in such example!
WeWiNet

**
MTCNA
hapac2, map, hap-lite, ltap-mini, RB4011 (good!), Audience (better), Audience + Wap R ac LTE Hybrid DSL + LTE FWA (best :-) ) !!!
 
Skyder
just joined
Posts: 8
Joined: Sun Nov 29, 2015 1:17 pm
Location: Russia. Kemerovo.

Re: USB Outdoor temperature sensor

Wed May 13, 2020 7:19 am

This can be done from RouterOS as well...
...If anyone is interested we can make small write up with examples for this use case.
+1
Please
 
WeWiNet
Member
Member
Posts: 417
Joined: Thu Sep 27, 2018 4:11 pm

Re: USB Outdoor temperature sensor

Wed May 27, 2020 3:57 pm

Hi Antons, how about this proposed user article? ;-)
+1 (again)
WeWiNet

**
MTCNA
hapac2, map, hap-lite, ltap-mini, RB4011 (good!), Audience (better), Audience + Wap R ac LTE Hybrid DSL + LTE FWA (best :-) ) !!!
 
UpRunTech
Member Candidate
Member Candidate
Posts: 136
Joined: Fri Jul 27, 2012 12:11 pm

Re: USB Outdoor temperature sensor

Sun Jun 07, 2020 4:07 am

In RouterOS if serial device is attached - disabled ppp-client is created. Make simple script, that does at-chat to this port and sends data, to database (Grafana for example).
Oh that's a good idea, I was thinking the only way would be to use a script that processed data from a serially attached device using the obscure ":terminal inkey" command.

Some preliminary testing I did infers the inkey command is attached only to the console it's run from be it ssh, telnet or a serial port, so a microcontroller would have to interact first by logging into the serial port console using a login/password and then initiate a script to be run that starts the inkey/put script that processes the data from the device.
 
nitin2468
just joined
Posts: 3
Joined: Wed Jun 03, 2020 9:39 pm
Location: usa
Contact:

Re: USB Outdoor temperature sensor

Thu Jun 11, 2020 2:29 pm

Why waveform doesn't go accurate? sometimes high and sometimes low
 
WeWiNet
Member
Member
Posts: 417
Joined: Thu Sep 27, 2018 4:11 pm

Re: USB Outdoor temperature sensor

Fri Jun 12, 2020 12:39 pm

Why waveform doesn't go accurate? sometimes high and sometimes low
Jotne's waveform? It's temperature: Day and night change...
WeWiNet

**
MTCNA
hapac2, map, hap-lite, ltap-mini, RB4011 (good!), Audience (better), Audience + Wap R ac LTE Hybrid DSL + LTE FWA (best :-) ) !!!
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 1806
Joined: Sat Dec 24, 2016 11:17 am
Location: jo.overland at gmail.com

Re: USB Outdoor temperature sensor

Fri Jun 12, 2020 2:09 pm

Jotne's waveform? It's temperature: Day and night change...
My router is up in the attic, so outside temperature and sun on the roof makes nice sinus curves :)
 
How to use Splunk to monitor your MikroTik Router(s)

MikroTik->Splunk
 

Who is online

Users browsing this forum: No registered users and 2 guests