Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

simisimis/blinkmeter

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blinkmeter

Electricity meter blink counter nodemcu lua code for ESP8266.

What it does:

  • Upon starting it establishes connection to provided wifi ssid
  • It counts electricity meter flashes and stores them in counter variable
  • It opens a socket and exposes counter.
  • Once prometheus scrapes the value, counter gets reset to 0.

Installation

Download nodemcu firmware

Flash your ESP8266 controller

$ esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=detect 0 /path/to/nodemcu.bin

Download ESPlorer

  • You can get it at Esplorer site
  • Extract and launch with java 1.7+ $ java -jar ESPlorer.jar

Upload lua files

  • move location_example.lua to location.lua and change to your ssid/psk
  • upload files through esplorer.

thanks to vonneudeck.

Used his way of connecting to wifi/exposing stats for prometheus

About

Electricity blink counter for ESP8266

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.