change weatherApp PV names
This commit is contained in:
@ -1,13 +1,15 @@
|
|||||||
#!./bin/linux-x86/softIocPy
|
#!./bin/linux-x86/softIocPy
|
||||||
|
|
||||||
|
epicsEnvSet("http_proxy", "http://proxy:8888/")
|
||||||
|
|
||||||
epicsEnvSet("PYTHONPATH", "${PWD}/python")
|
epicsEnvSet("PYTHONPATH", "${PWD}/python")
|
||||||
|
|
||||||
dbLoadDatabase("dbd/softIocPy.dbd")
|
dbLoadDatabase("dbd/softIocPy.dbd")
|
||||||
softIocPy_registerRecordDeviceDriver(pdbbase)
|
softIocPy_registerRecordDeviceDriver(pdbbase)
|
||||||
|
|
||||||
dbLoadRecords("db/weather.db","P=kisp:,LOC=KISP")
|
dbLoadRecords("db/weather.db","P=CF:Ext{KISP},LOC=KISP")
|
||||||
#dbLoadRecords("db/weather.db","P=khwv:,LOC=KHWV")
|
dbLoadRecords("db/weather.db","P=CF:Ext{KHWV},LOC=KHWV")
|
||||||
#dbLoadRecords("db/weather.db","P=unnt:,LOC=UNNT")
|
dbLoadRecords("db/weather.db","P=CF:Ext{UNNT},LOC=UNNT")
|
||||||
|
|
||||||
iocInit()
|
iocInit()
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
record(stringin, "$(P)Wthr-I") {
|
record(stringin, "$(P)ID-I") {
|
||||||
field(DTYP, "Python Device")
|
field(DTYP, "Python Device")
|
||||||
field(DESC, "Station ID")
|
field(DESC, "Station ID")
|
||||||
field(INP , "@weather $(LOC) showID")
|
field(INP , "@weather $(LOC) showID")
|
||||||
field(PINI, "YES")
|
field(PINI, "YES")
|
||||||
}
|
}
|
||||||
|
|
||||||
record(ai, "$(P)K:Update-I") {
|
record(ai, "$(P)Time:Update-I") {
|
||||||
field(DTYP, "Python Device")
|
field(DTYP, "Python Device")
|
||||||
field(DESC, "Update period")
|
field(DESC, "Update period")
|
||||||
field(INP , "@weather $(LOC) updatePeriod")
|
field(INP , "@weather $(LOC) updatePeriod")
|
||||||
@ -16,7 +16,7 @@ record(ai, "$(P)K:Update-I") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
record(stringin, "$(P)K-I") {
|
record(stringin, "$(P)Time-I") {
|
||||||
field(DTYP, "Python Device")
|
field(DTYP, "Python Device")
|
||||||
field(DESC, "Measurement time")
|
field(DESC, "Measurement time")
|
||||||
field(INP , "@weather $(LOC) getISOTime")
|
field(INP , "@weather $(LOC) getISOTime")
|
||||||
@ -48,7 +48,7 @@ record(ai, "$(P)T:Chill-I") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
record(ai, "$(P)Humid-I") {
|
record(ai, "$(P)RH-I") {
|
||||||
field(DTYP, "Python Device")
|
field(DTYP, "Python Device")
|
||||||
field(DESC, "Relative humidity")
|
field(DESC, "Relative humidity")
|
||||||
field(INP , "@weather $(LOC) getHumidity")
|
field(INP , "@weather $(LOC) getHumidity")
|
||||||
@ -69,16 +69,16 @@ record(ai, "$(P)P-I") {
|
|||||||
field(LOPR, "900")
|
field(LOPR, "900")
|
||||||
}
|
}
|
||||||
|
|
||||||
record(stringin, "$(P)Cond-I") {
|
record(stringin, "$(P)Val:Sky-I") {
|
||||||
field(DTYP, "Python Device")
|
field(DTYP, "Python Device")
|
||||||
field(DESC, "Sky condition")
|
field(DESC, "Sky condition")
|
||||||
field(INP , "@weather $(LOC) getSkyConditions")
|
field(INP , "@weather $(LOC) getSkyConditions")
|
||||||
field(SCAN, "I/O Intr")
|
field(SCAN, "I/O Intr")
|
||||||
field(TSE , "-2")
|
field(TSE , "-2")
|
||||||
}
|
}
|
||||||
record(stringin, "$(P)Wthr-I") {
|
record(stringin, "$(P)Val:Rmrk-I") {
|
||||||
field(DTYP, "Python Device")
|
field(DTYP, "Python Device")
|
||||||
field(DESC, "Current Weather")
|
field(DESC, "Observe remarks")
|
||||||
field(INP , "@weather $(LOC) getWeather")
|
field(INP , "@weather $(LOC) getWeather")
|
||||||
field(SCAN, "I/O Intr")
|
field(SCAN, "I/O Intr")
|
||||||
field(TSE , "-2")
|
field(TSE , "-2")
|
||||||
@ -94,7 +94,7 @@ record(ai, "$(P)Dir:Wind-I") {
|
|||||||
field(HOPR, "360")
|
field(HOPR, "360")
|
||||||
field(LOPR, "0")
|
field(LOPR, "0")
|
||||||
}
|
}
|
||||||
record(ai, "$(P)V:Wind-I") {
|
record(ai, "$(P)S:Wind-I") {
|
||||||
field(DTYP, "Python Device")
|
field(DTYP, "Python Device")
|
||||||
field(DESC, "Wind speed")
|
field(DESC, "Wind speed")
|
||||||
field(INP , "@weather $(LOC) getWindSpeed")
|
field(INP , "@weather $(LOC) getWindSpeed")
|
||||||
|
Reference in New Issue
Block a user