Community discussions

MikroTik App
 
User avatar
neogoth
just joined
Topic Author
Posts: 17
Joined: Mon Mar 22, 2021 5:17 pm

Read ROS Values with an ESP8266

Mon Mar 22, 2021 7:07 pm

Hi,

i wanted to display some RouterOS values on a LCD hooked up to an ESP8266 which is connected to a Mikrotik Wifi network.

Background Story:
We have a small train that should get Wifi over LTE along the track for our customers and to send the GPS Position of the train to a server. For this i want to get a Mikrotik router since i am familiar with these. To check the LTE, GPS and Internet Status I want to place an ESP8266 with a LCD/OLED Display at the driver's cab so that he knows whats going on.

With a Raspberry Pi this is possible but it needs to be booted up and shut down properly and i want to keep it stupid and simple so i decided to use an ESP8266

I checked out the Mikrotik API documentation and was overwhelmed and i understood nothing. I also tried to read values via Telnet but this is so messy with the libraries i found.

Can someone please help me find a solution for that problem?
 
User avatar
loloski
Member Candidate
Member Candidate
Posts: 296
Joined: Mon Mar 15, 2021 9:10 pm

Re: Read ROS Values with an ESP8266

Sun Apr 04, 2021 8:32 am

Hey,

This doesn't directly answer your question, in order to reduce complexity of your solution you might try to consider this product
https://mikrotik.com/product/ltap_mini_lte_kit_us

This may simplify things even further
 
User avatar
neogoth
just joined
Topic Author
Posts: 17
Joined: Mon Mar 22, 2021 5:17 pm

Re: Read ROS Values with an ESP8266

Sun Apr 04, 2021 12:09 pm

Hey,

This doesn't directly answer your question, in order to reduce complexity of your solution you might try to consider this product
https://mikrotik.com/product/ltap_mini_lte_kit_us

This may simplify things even further
Hi, that Router would have been my choice anyways (just without US).
I found a way now. The ESP8266 runs a http web server for post requests. Now i can send a post request from the mikrotik with scripts to the ESP. The ESP then displays the Value on the tiny OLED screen.

If someone wants the code i can modify it a bit and maybe upload it to Github.
 
jeppu31
just joined
Posts: 4
Joined: Mon Apr 12, 2021 7:47 pm

Re: Read ROS Values with an ESP8266

Sat Apr 24, 2021 6:19 pm

Hey,

This doesn't directly answer your question, in order to reduce complexity of your solution you might try to consider this product
https://mikrotik.com/product/ltap_mini_lte_kit_us

This may simplify things even further
Hi, that Router would have been my choice anyways (just without US).
I found a way now. The ESP8266 runs a http web server for post requests. Now i can send a post request from the mikrotik with scripts to the ESP. The ESP then displays the Value on the tiny OLED screen.

If someone wants the code i can modify it a bit and maybe upload it to Github.

Hello Sir.. Have a blessed day.. I'm interested. please send me your code and I'll try you project.. what is your Githud account.? or send me an email: jeffcastaneda31@gmail.com

Thanks..
Last edited by jeppu31 on Thu Apr 29, 2021 7:30 pm, edited 2 times in total.
 
User avatar
neogoth
just joined
Topic Author
Posts: 17
Joined: Mon Mar 22, 2021 5:17 pm

Re: Read ROS Values with an ESP8266

Mon Apr 26, 2021 5:39 pm

Hey,

This doesn't directly answer your question, in order to reduce complexity of your solution you might try to consider this product
https://mikrotik.com/product/ltap_mini_lte_kit_us

This may simplify things even further
Hi, that Router would have been my choice anyways (just without US).
I found a way now. The ESP8266 runs a http web server for post requests. Now i can send a post request from the mikrotik with scripts to the ESP. The ESP then displays the Value on the tiny OLED screen.

If someone wants the code i can modify it a bit and maybe upload it to Github.

Hello Sir.. Have a blessed day.. I'm interested. please send me your code and I'll try you project.. what is your Githud account? or send me an email: jeffcastaneda31@gmail.com

Thanks..
Hi, i don't have a github Account yet but i'll try to get the code optimized and published there in the next few days. I'll let you know when i'm done.
 
jeppu31
just joined
Posts: 4
Joined: Mon Apr 12, 2021 7:47 pm

Re: Read ROS Values with an ESP8266

Wed Apr 28, 2021 8:30 pm

Hey,

This doesn't directly answer your question, in order to reduce complexity of your solution you might try to consider this product
https://mikrotik.com/product/ltap_mini_lte_kit_us

This may simplify things even further
Hi, that Router would have been my choice anyways (just without US).
I found a way now. The ESP8266 runs a http web server for post requests. Now i can send a post request from the mikrotik with scripts to the ESP. The ESP then displays the Value on the tiny OLED screen.

If someone wants the code i can modify it a bit and maybe upload it to Github.

Hello Sir.. Have a blessed day.. I'm interested. please send me your code and I'll try you project.. what is your Githud account? or send me an email: jeffcastaneda31@gmail.com

Thanks..
Hi, i don't have a github Account yet but i'll try to get the code optimized and published there in the next few days. I'll let you know when i'm done.
Hello.. please let me know when you're done.. I need to continue my project with that.. Thank you so much in advance.Godbless
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Read ROS Values with an ESP8266

Wed Apr 28, 2021 10:14 pm

@jeppu31 @neogoth

Please use "Post Reply" button below the post when you do reply on a post. Not need to Quote the whole post above you. And Quoting the Quoting the Quoting just fills up the thread.
 
User avatar
neogoth
just joined
Topic Author
Posts: 17
Joined: Mon Mar 22, 2021 5:17 pm

Re: Read ROS Values with an ESP8266  [SOLVED]

Wed Apr 28, 2021 11:48 pm

@jeppu31
Hi, i just reworked the code, added some small Features, cleaned it up, documented the code and wrote a description for it today.
I am finally done after working on it for several hours today, couldn't do it earlier because i was away from home for a few days.
You can find my project here:

https://github.com/neogoth/mikrotik-esp-monitor

I hope it is well enough documented so that you can modify it to your needs.
If there are any questions feel free to contact me.
 
jeppu31
just joined
Posts: 4
Joined: Mon Apr 12, 2021 7:47 pm

Re: Read ROS Values with an ESP8266

Thu Apr 29, 2021 4:42 pm

@jeppu31
Hi, i just reworked the code, added some small Features, cleaned it up, documented the code and wrote a description for it today.
I am finally done after working on it for several hours today, couldn't do it earlier because i was away from home for a few days.
You can find my project here:

https://github.com/neogoth/mikrotik-esp-monitor

I hope it is well enough documented so that you can modify it to your needs.
If there are any questions feel free to contact me.
Thank you very much sir.. Godbless

Who is online

Users browsing this forum: No registered users and 22 guests