File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ lon=0.0
1010#skymax_mode_change_script=/some/scripts/ups.sh %mode%
1111#influxdb_url=http://192.168.0.3:8086
1212#lcdproc=192.168.0.4:13666
13- #remeha_device=/sys/bus/usb/devices/1-1.3.4:1.0/tty
13+ #remeha_device=192.168.0.6:4001
1414#remeha_state_change_script=/some/scripts/remeha.sh %state%
1515
1616[postgres]
Original file line number Diff line number Diff line change @@ -327,11 +327,11 @@ async fn main() {
327327
328328 //remeha async task
329329 match get_config_string ( "remeha_device" , None ) {
330- Some ( path ) => {
330+ Some ( host ) => {
331331 let worker_cancel_flag = cancel_flag. clone ( ) ;
332332 let mut remeha = remeha:: Remeha {
333333 display_name : "<i><black>remeha:</>" . to_string ( ) ,
334- device_path : path ,
334+ device_host_port : host ,
335335 poll_ok : 0 ,
336336 poll_errors : 0 ,
337337 influxdb_url : influxdb_url. clone ( ) ,
Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ impl RemehaState {
417417
418418pub struct Remeha {
419419 pub display_name : String ,
420- pub device_path : String ,
420+ pub device_host_port : String ,
421421 pub poll_ok : u64 ,
422422 pub poll_errors : u64 ,
423423 pub influxdb_url : Option < String > ,
You can’t perform that action at this time.
0 commit comments