Commit Graph

171 Commits

Author SHA1 Message Date
Jarno Rankinen 535a6f69e3 Separated html, js and css, moved things to appropriate folders. Need to figure out how to use the same html template for two paths without copying 2023-01-17 20:40:30 +02:00
Jarno Rankinen 6833d9f4d2 NGINX configuration 2023-01-16 23:55:36 +02:00
Jarno Rankinen 1d10a5bbb0 Added index.html, NGINX required 2023-01-16 23:55:02 +02:00
Jarno Rankinen 52ff27b146 Class renaming 2 2023-01-15 23:37:18 +02:00
Jarno Rankinen c2bf84bf90 Renamed class 2023-01-15 23:35:03 +02:00
Jarno Rankinen 595b94a896 PUT /api/v1/coils/<int:address> to flip a coil 2023-01-15 23:32:49 +02:00
Jarno Rankinen 609ae0b97f include_reserved and live moved to query parameters, Coils class is now subscriptable, added a missing reserved coil, Coil class has an individual get() function 2023-01-15 21:46:14 +02:00
Jarno Rankinen 327c3ecd36 minimalmodbus is an attribute of the PingvinKL class now, needs to be passed on to instances of Coil class, Flask routes for reading all coils 2023-01-15 21:05:28 +02:00
Jarno Rankinen 5a9b5a697f First steps for Flask API, print returns a string instead of printing, get() function to get values as JSON array, serialize() function to get values as Python list object 2023-01-15 19:58:30 +02:00
Jarno Rankinen 0b167c31d5 Global debug flag for enervent-logger.py 2023-01-15 15:44:26 +02:00
Jarno Rankinen 74694a6268 Commenting 2023-01-15 15:41:49 +02:00
Jarno Rankinen 281f28fc93 print() function for Coils class 2023-01-15 15:35:41 +02:00
Jarno Rankinen 159b5ec01e Logging tuning 2023-01-15 15:29:52 +02:00
Jarno Rankinen 70976e5bdf updateValue->fetchValue for clarity 2023-01-15 15:25:27 +02:00
Jarno Rankinen 616a25ac4e value and updateValue (read from bus) functions in Coils class 2023-01-15 15:20:21 +02:00
Jarno Rankinen 4826d62477 Rethinking class structure 2023-01-15 14:57:49 +02:00
Jarno Rankinen 0b06729da0 Refine EnerventCoil __init__ 2023-01-15 14:52:48 +02:00
Jarno Rankinen b4ba69e505 Separate function for updating coil values 2023-01-15 14:47:35 +02:00
Jarno Rankinen 38d3bd722d EPingvincoils class, reads values from bus on init 2023-01-15 14:44:00 +02:00
Jarno Rankinen 23bc11e769 Version variable 2023-01-15 13:18:23 +02:00
Jarno Rankinen 7aeb601700 Initial commit 2023-01-15 13:15:05 +02:00