Skip to content

Commit

Permalink
Update required fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-developer committed Dec 28, 2022
1 parent 3932c59 commit 909e6e7
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 38 deletions.
20 changes: 10 additions & 10 deletions allsky_cloud/allsky_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
},
"argumentdetails": {
"i2caddress": {
"required": "true",
"required": "false",
"description": "I2C Address",
"help": "Override the standard i2c address for a device. NOTE: This value must be hex i.e. 0x76",
"tab": "Sensor"
},
"clearbelow" : {
"required": "true",
"required": "false",
"description": "Clear Below °C",
"help": "When the sky temperature is below this value the sky is assumed to be clear",
"tab": "Settings",
Expand All @@ -54,7 +54,7 @@
}
},
"cloudyabove" : {
"required": "true",
"required": "false",
"description": "Cloudy Above °C",
"help": "When the sky temperature is above this value the sky is assumed to be cloudy",
"tab": "Settings",
Expand All @@ -75,7 +75,7 @@
}
},
"k1" : {
"required": "true",
"required": "false",
"description": "k1",
"tab": "Advanced",
"type": {
Expand All @@ -86,7 +86,7 @@
}
},
"k2" : {
"required": "true",
"required": "false",
"description": "k2",
"tab": "Advanced",
"type": {
Expand All @@ -97,7 +97,7 @@
}
},
"k3" : {
"required": "true",
"required": "false",
"description": "k3",
"tab": "Advanced",
"type": {
Expand All @@ -108,7 +108,7 @@
}
},
"k4" : {
"required": "true",
"required": "false",
"description": "k4",
"tab": "Advanced",
"type": {
Expand All @@ -119,7 +119,7 @@
}
},
"k5" : {
"required": "true",
"required": "false",
"description": "k5",
"tab": "Advanced",
"type": {
Expand All @@ -130,7 +130,7 @@
}
},
"k6" : {
"required": "true",
"required": "false",
"description": "k6",
"tab": "Advanced",
"type": {
Expand All @@ -141,7 +141,7 @@
}
},
"k7" : {
"required": "true",
"required": "false",
"description": "k7",
"tab": "Advanced",
"type": {
Expand Down
14 changes: 7 additions & 7 deletions allsky_dewheater/allsky_dewheater.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
}
},
"inputpin": {
"required": "true",
"required": "false",
"description": "Input Pin",
"help": "The input pin for DHT type sensors, not required for i2c devices",
"tab": "Sensor",
Expand All @@ -64,13 +64,13 @@
}
},
"i2caddress": {
"required": "true",
"required": "false",
"description": "I2C Address",
"help": "Override the standard i2c address for a device. NOTE: This value must be hex i.e. 0x76",
"tab": "Sensor"
} ,
"heaterpin": {
"required": "true",
"required": "false",
"description": "Heater Pin",
"help": "The pin the heater control relay is connected to",
"tab": "Heater",
Expand Down Expand Up @@ -99,7 +99,7 @@
}
},
"frequency" : {
"required": "true",
"required": "false",
"description": "Delay",
"help": "The delay between sensor reads in seconds. Zero will disable this and run the check after every frame",
"tab": "Dew Control",
Expand All @@ -111,7 +111,7 @@
}
},
"limit" : {
"required": "true",
"required": "false",
"description": "Limit",
"help": "If the temperature is within this many degrees of the dew point the heater will be enabled or disabled",
"tab": "Dew Control",
Expand All @@ -123,7 +123,7 @@
}
},
"force" : {
"required": "true",
"required": "false",
"description": "Forced Temperature",
"help": "Always enable the heater when the ambient termperature is below this value, zero will disable this.",
"tab": "Dew Control",
Expand All @@ -135,7 +135,7 @@
}
},
"max" : {
"required": "true",
"required": "false",
"description": "Max Heater Time",
"help": "The maximum time in seconds for the heater to be on. Zero will disable this.",
"tab": "Dew Control",
Expand Down
14 changes: 7 additions & 7 deletions allsky_discordsend/allsky_discordsend.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
}
},
"daycount" : {
"required": "true",
"required": "false",
"description": "Daytime Count",
"help": "Send every (this number) frame to Discord. This is to prevent flooding the discord channels",
"tab": "Day Time",
Expand All @@ -62,7 +62,7 @@
}
},
"dayimageurl": {
"required": "true",
"required": "false",
"tab": "Day Time",
"description": "The webhook url for day time images"
},
Expand All @@ -77,7 +77,7 @@
}
},
"nightcount" : {
"required": "true",
"required": "false",
"description": "Nighttime Count",
"help": "Send every (this number) frame to Discord. This is to prevent flooding the discord channels",
"tab": "Night Time",
Expand All @@ -89,7 +89,7 @@
}
},
"nightimageurl": {
"required": "true",
"required": "false",
"tab": "Night Time",
"description": "The webhook url for night time images"
},
Expand All @@ -104,7 +104,7 @@
}
},
"startrailsimageurl": {
"required": "true",
"required": "false",
"tab": "Star Trails",
"description": "The webhook url for Star Trails images"
},
Expand All @@ -120,7 +120,7 @@
}
},
"keogramimageurl": {
"required": "true",
"required": "false",
"tab": "Keograms",
"description": "The webhook url for Star Keograms"
},
Expand All @@ -135,7 +135,7 @@
}
},
"timelapseimageurl": {
"required": "true",
"required": "false",
"tab": "Timelapse",
"description": "The webhook url for Timelapses"
}
Expand Down
4 changes: 2 additions & 2 deletions allsky_gpio/allsky_gpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"argumentdetails": {
"gpio": {
"required": "true",
"required": "false",
"description": "GPIO Pin",
"help": "",
"type": {
Expand All @@ -35,7 +35,7 @@
}
},
"state": {
"required": "true",
"required": "false",
"description": "Pin State",
"help": "",
"type": {
Expand Down
17 changes: 10 additions & 7 deletions allsky_influxdb/allsky_influxdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@
},
"argumentdetails": {
"host": {
"required": "true",
"required": "false",
"description": "Influxdb host",
"help": ""
},
"port": {
"required": "true",
"required": "false",
"description": "Influxdb Port",
"help": "",
"type": {
Expand All @@ -78,24 +78,27 @@
}
},
"user": {
"required": "true",
"required": "false",
"description": "Username",
"help": ""
},
"password": {
"required": "true",
"required": "false",
"description": "Password",
"help": ""
},
"database": {
"required": "true",
"required": "false",
"description": "Database",
"help": ""
},
"values": {
"required": "true",
"required": "false",
"description": "Values",
"help": "Values to save"
"help": "Values to save",
"type": {
"fieldtype": "multivariables"
}
}
},
"enabled": "false"
Expand Down
2 changes: 1 addition & 1 deletion allsky_openweathermap/allsky_openweathermap.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def setExtraValue(path, data, extraKey, expires):
global extraData
value = getValue(path, data)
if value is not None:
extraData[extraKey] = {
extraData["AS_" + extraKey] = {
"value": value,
"expires": expires
}
Expand Down
6 changes: 3 additions & 3 deletions allsky_sqm/allsky_sqm.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
}
},
"roi": {
"required": "true",
"required": "false",
"description": "Region of Interest",
"help": "The area of the image to check for sky quality. Format is x1,y1,x2,y2",
"type": {
"fieldtype": "roi"
}
},
"roifallback" : {
"required": "true",
"required": "false",
"description": "Fallback %",
"help": "If no ROI is set then this % of the image, from the center will be used",
"type": {
Expand All @@ -58,7 +58,7 @@
}
},
"formula": {
"required": "true",
"required": "false",
"description": "Adjustment Forumla",
"help": "Formula to adjust the read value. This forumla can use only Pythons inbuilt maths functions and basic mathematical operators. Please see the documentation for more details of the formula variables available"
},
Expand Down
2 changes: 1 addition & 1 deletion module-installer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3

from whiptail import Whiptail
import os
Expand Down

0 comments on commit 909e6e7

Please sign in to comment.