use of TARIFF_CURRENT_FULL
This commit is contained in:
		@@ -61,16 +61,16 @@ if [ ${news_to_ismas_sourced:-1} = "1" ]; then    # include only once
 | 
			
		||||
        echo $((echo "$data"; sleep 1) | nc localhost $APISM_DB_PORT)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    # 
 | 
			
		||||
    # send current psa setting to ismas at end of update procedure
 | 
			
		||||
    #
 | 
			
		||||
    current_settings_to_ismas () {
 | 
			
		||||
        local func="${FUNCNAME[0]}"
 | 
			
		||||
        local p=("$@")
 | 
			
		||||
        local data="#M=APISM#C=CMD_SENDVERSION#J=
 | 
			
		||||
        {
 | 
			
		||||
            \"TARIFF\": {
 | 
			
		||||
                \"VERSION\" : \"\",
 | 
			
		||||
                \"PROJECT\" : \"\",
 | 
			
		||||
                \"ZONE\" : 0,
 | 
			
		||||
                \"INFO\" : \"\"
 | 
			
		||||
                $(<$TARIFF_CURRENT_FULL)
 | 
			
		||||
            },
 | 
			
		||||
            \"HARDWARE\" : {
 | 
			
		||||
                \"DEVICES\" : [
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user