Mikrotik/RouterOS voltage sensors were showing incorrect values (469.0 instead of 46.9) because existing sensors in the database have sensor_divisor=1 instead of the correct value of 10. The RouterOS profile code was fixed in a previous commit to set divisor=10 for new sensors, but existing sensors need to be updated. Migration changes: - Updates sensor_divisor from 1 to 10 for Mikrotik voltage sensors - Identifies Mikrotik sensors by OID prefix: 1.3.6.1.4.1.14988.1.1.3.100.1.3 - Divides all historical sensor_reading values by 10 to correct the data - Both up and down migrations included for full reversibility After this migration: - Voltage will show as 46.9V instead of 469.0V - Historical graphs will show correct voltage values |
||
|---|---|---|
| .. | ||
| gettext | ||
| mibs | ||
| profiles | ||
| proto | ||
| repo | ||
| static | ||