53 Commits

Author SHA1 Message Date
GerhardHoffmann abf75d636b assum blob not empty 2023-04-25 11:01:22 +02:00
GerhardHoffmann b6a999e014 test 2023-04-25 10:59:55 +02:00
GerhardHoffmann dcc7397232 test 2023-04-25 10:56:43 +02:00
GerhardHoffmann f248f3f85f try to use blob and commit for changed file 2023-04-25 10:50:10 +02:00
GerhardHoffmann 93ba8215b9 test 2023-04-25 10:39:48 +02:00
GerhardHoffmann cd85b2c6e9 test 2023-04-25 10:34:17 +02:00
GerhardHoffmann 05fe40a2e6 test 2022-07-08 15:20:18 +02:00
GerhardHoffmann 040f15bc0e test 2022-07-08 15:16:19 +02:00
GerhardHoffmann 80e38a8482 test 2022-07-08 15:10:11 +02:00
GerhardHoffmann 731dfcf961 test 2022-07-08 15:07:34 +02:00
GerhardHoffmann a668dfbe3f test 2022-07-08 15:06:42 +02:00
GerhardHoffmann 26d3c61c7d test 2022-07-08 15:02:42 +02:00
GerhardHoffmann bbd6566772 test 2022-07-08 14:57:07 +02:00
GerhardHoffmann ce9ecc509c Add tariff files for szeged 2023-04-24 12:43:46 +02:00
GerhardHoffmann ad110349d8 Fixed JSON-typo 2023-04-17 12:41:33 +02:00
GerhardHoffmann 50c5549834 Fixed JSON-typo 2023-04-17 12:40:32 +02:00
GerhardHoffmann 59840c6db9 Update for Hungarian format 2023-04-13 16:38:41 +02:00
GerhardHoffmann 621a8ac361 Print the values of the passed parameters. 2023-04-12 15:59:57 +02:00
GerhardHoffmann 9ca0a00763 Adding get_blob, get_commit_for_blob, changed_file_names. 2023-04-12 15:28:39 +02:00
GerhardHoffmann 09633c3754 Add hook post-checkout 2023-04-12 14:49:55 +02:00
GerhardHoffmann 5c85a294d5 Adding git hook post-checkout. 2023-04-12 14:22:17 +02:00
SiegfriedSiegert 0f5c66fccc Update ATBAPP config 2023-04-04 08:59:21 +02:00
SiegfriedSiegert 58e833b3a6 Update gitignore 2023-04-04 08:58:45 +02:00
SiegfriedSiegert 48a299002c gitignore: do not track application default ini files 2023-04-04 08:04:54 +02:00
SiegfriedSiegert 91130d96f0 SystemControl: Fix: config: AT_TASKS configuration 2023-04-03 14:50:59 +02:00
SiegfriedSiegert b115f3dfb8 SystemControl: config: add AT_TASKS configuration 2023-04-03 13:52:13 +02:00
SiegfriedSiegert 76c4663d8f TEST: change SystemControl.ini 2023-04-03 11:18:30 +02:00
SiegfriedSiegert 7462ce9e12 Merge branch 'zg1/zone1' of git.mimbach49.de:GerhardHoffmann/customer_281 into zg1/zone1 2023-04-03 11:17:50 +02:00
GerhardHoffmann 1480313fd0 add empty lines 2023-04-03 10:53:26 +02:00
SiegfriedSiegert a17bcb8b17 Updatetest 2023-04-03 10:26:22 +02:00
SiegfriedSiegert 469ecbc482 Add initial SystemControl.ini 2023-04-03 09:54:08 +02:00
GerhardHoffmann 273e6a8422 datumseintrag 2023-04-03 08:51:28 +02:00
GerhardHoffmann 1bfbfbb670 Removed *.ini-Files. 2023-03-31 11:47:49 +02:00
GerhardHoffmann 4071d8ea14 Removed *ini-Files. 2023-03-31 11:42:27 +02:00
GerhardHoffmann f383f8282e aset fsize only when file exists 2023-03-31 10:13:16 +02:00
GerhardHoffmann 2bcc19f9f6 rm test file 2023-03-31 10:09:10 +02:00
GerhardHoffmann 094fc2ef9a removed 'local' keyword 2023-03-31 09:39:16 +02:00
GerhardHoffmann ba690aea25 Add .gitignore file 2023-03-31 09:37:10 +02:00
GerhardHoffmann 5b57d0704c testing 2023-03-31 09:06:53 +02:00
GerhardHoffmann cc75917193 Fixed typo 2023-03-31 09:01:13 +02:00
GerhardHoffmann 5f3a7608ba testing 2023-03-31 09:00:01 +02:00
GerhardHoffmann b6b37ec0c0 testing 2023-03-31 08:57:17 +02:00
GerhardHoffmann 8a64c8bcdc testing 2023-03-31 08:55:27 +02:00
GerhardHoffmann d0574c6574 testing 2023-03-31 08:50:06 +02:00
GerhardHoffmann ef1b9e6add testing 2023-03-31 08:48:22 +02:00
GerhardHoffmann ef5bb0e182 rm empty test binary 2023-03-31 07:58:31 +02:00
GerhardHoffmann 3c97eaf7d8 test 2023-03-30 13:13:12 +02:00
GerhardHoffmann 5293268086 Add empty test bin 2023-03-30 12:56:35 +02:00
GerhardHoffmann d96a34d875 Add handling for binary dc-files 2023-03-30 12:46:04 +02:00
GerhardHoffmann 4d48b9bcc3 Add binary device controller file (29/03/2023) 2023-03-30 12:37:29 +02:00
GerhardHoffmann 8c736577fe Update to version dc2c.4.11.hex 2023-03-30 09:31:23 +02:00
GerhardHoffmann 9b2d7c77f6 commit test 2023-03-28 16:05:28 +02:00
GerhardHoffmann 998c44fd5c Test for change of json 2023-03-28 15:28:13 +02:00
26 changed files with 6538 additions and 6324 deletions
+4
View File
@@ -0,0 +1,4 @@
echo "POST-CHECKOUT"
echo "PREV-HEAD=$1"
echo "CURR-HEAD=$2"
echo "BRANCH-CHECKOUT=$3"
+32 -3
View File
@@ -14,12 +14,41 @@ fi
GIT_PULL_TMP=/tmp/git_pull GIT_PULL_TMP=/tmp/git_pull
OPKG_CMDS_TMP=/tmp/opkg_commands OPKG_CMDS_TMP=/tmp/opkg_commands
rm -f $OPKG_PULL_TMP rm -f $GIT_PULL_TMP
rm -f $OPKG_CMDS_TMP rm -f $OPKG_CMDS_TMP
get_blob () { # get the blob of the file(name) passed as $1
# note: this can be used for any file in the filesystem
echo $(git hash-object $1)
}
get_commit_for_blob () {
# search for the blob in all commits for the file(name) $1
echo $(echo $(git log --all --pretty=format:%H -- $1) |
xargs -I{} bash -c "git ls-tree {} -- $1 |
grep -q $1 && echo {}")
}
changed_file_names () {
for fn in $(git diff-tree -r HEAD@{1} HEAD --name-only); do for fn in $(git diff-tree -r HEAD@{1} HEAD --name-only); do
if grep -E -q "(DC.*json|dc2c.hex|tariff.*json)" <<< $fn; then # called in repository: $fn is e.g. etc/psa_tariff/tariff01.json
echo "$fn" >> $GIT_PULL_TMP # add '/' prefix
fn=$(echo $fn | awk '{ printf "/"$0 }')
CHANGED_FILE_NAMES+=($fn)
done
}
for fn in $(git diff-tree -r HEAD@{1} HEAD --name-only); do
if grep -E -q "(DC.*json|dc.*hex|dc.*bin|tariff.*json)" <<< $fn; then
# called in repository: $fn is e.g. etc/psa_tariff/tariff01.json
# add '/' prefix
fn=$(echo $fn | awk '{ printf "/"$0 }')
if [[ -f "$fn" ]]; then
blob=$(get_blob "$fn")
commit=$(get_commit_for_blob $blob)
fsize=$(ls -l "$fn" | awk '{ print $5 }')
echo "$fn $fsize b=$blob c=$commit" >> $GIT_PULL_TMP
fi
fi fi
if grep -E -q ".*opkg_commands" <<< $fn; then if grep -E -q ".*opkg_commands" <<< $fn; then
readarray opkg_commands < <(cat $fn) readarray opkg_commands < <(cat $fn)
+27
View File
@@ -0,0 +1,27 @@
# First, ignore everything
*
# Now, whitelist anything that's a directory
!*/
# And all the file types you're interested in
!.gitignore
!.githooks/post-merge
!.githooks/post-checkout
!**/.gitignore
!**/.githooks/post-merge
!**/.githooks/post-checkout
## Except
!etc/atb/*
!etc/psa_config/*
!etc/psa_update/*
!etc/psa_tariff/*
!etc/dc/*.hex
!etc/dc/*.bin
!*/etc/*.ini
!*/etc/atb/*
!*/etc/psa_config/*
!*/etc/psa_update/*
!*/etc/psa_tariff/*
!*/etc/dc/*.hex
!*/etc/dc/*.bin
-113
View File
@@ -1,113 +0,0 @@
[COMMON]
com_port_name=/dev/ttyS1
com_baud_rate=9600
lang1=de_DE
lang2=en_GB
lang3=fr_FR
lang4=tr_TR
#lang3=fr_FR
#lang4=ja_JP
defaultLanguage=1
#useLanguage=[128+][64+][32+][16]
useLanguage=224
usePayment=192
textfile=/opt/app/ATBQT/text/HMI_Texte.xml
logfile=/var/log/atbqt.log
alternativeLogoFile=/opt/app/ATBQT/logo/logo_betterPark.png
feature_Log=off
feature_TouchFeedback=off
feature_SystemSuspend=off
feature_StartButton=on
feature_selfOOO=off
feature_DBusDisplayControl=on
feature_DBusSuspendControl=off
feature_ShowParkingTime=off
touch_feedback_gpio=121
touch_feedback_on_value=1
touch_feedback_off_value=0
#ooo_mode={useDisk|otherMachine}
ooo_mode=otherMachine
sellTimeout_time=120
LicencePlateExampleString=HOAB123
showInfoButton=false
showHelpButton=false
[PLUGINS]
CalculatePricePlugin=ATB_Soap_CalculatePricePlugin
SimulationPlugin=TouchSimulationPlugin
CCPlugin=TCP_ZVT_CCPlugin
[TCP_ZVT_CCPlugin]
CurrencyCode=EUR
debug=1
IP=192.168.5.242
Port=22000
SSL=0
ZVT=DE
sleep=1
printIntermediateStatus=1
Password=277296
preAuthReservation=2500
[ATB_Soap_CalculatePricePlugin]
#useRFID=yes
#useBarcode=yes
useDebug=true
ignoreSslErrors=true
protocol=https
host=atb-api.nexobility.de
port=443
service=
areaId=1
deviceId=1
Password=12335
UserName=user
useSystemSetting=1
fallbackThreshold=1
connectionTimeout=7
maxOfflineTransactions=1000
[SCREENCONFIG]
sc_31="1,1,0"
sc_33="1,0,1"
sc_3F="1,0,0"
sc_40="1,1,1"
sc_41="1,0,0"
sc_35="0,0,0"
sc_51="1,0,1"
sc_52="1,0,0"
sc_55="1,0,0"
sc_82="1,0,0"
[mmmmmmmmmmmmmmm]
[ERRORCODE_MAPPING]
VOUCHER:PROCESS=0xFA30
VOUCHER:SOAP=0xFA31
VOUCHER:TYPE=FA32
VOUCHER:SERVICE=FA33
VOUCHER:VALIDITY=FA34
120103004=FA35
View File
View File
@@ -69,6 +69,7 @@ sc_53="1,0,0"
[PLUGINS] [PLUGINS]
CCPlugin=IngenicoISelf_CCPlugin CCPlugin=IngenicoISelf_CCPlugin
CalculatePricePlugin=MOBILISIS_CalculatePricePlugin
[IngenicoISelf_CCPlugin] [IngenicoISelf_CCPlugin]
@@ -83,5 +84,14 @@ Currency=HUF
[TCP_CONTROL] [TCP_CONTROL]
enable=1 enable=1
############
[PAYMENT]
currencySymbol=
cashVariant=CoinsOnly
paymentPointInTime=poa
[MOBILISIS_CalculatePricePlugin]
useDebug=1
-110
View File
@@ -1,110 +0,0 @@
[COMMON]
com_port_name=/dev/ttyS1
com_baud_rate=9600
lang1=de_DE
lang2=en_GB
lang3=fr_FR
lang4=tr_TR
#lang3=fr_FR
#lang4=ja_JP
defaultLanguage=1
#useLanguage=[128+][64+][32+][16]
useLanguage=224
usePayment=192
textfile=/opt/app/ATBQT/text/HMI_Texte.xml
logfile=/var/log/atbqt.log
alternativeLogoFile=/opt/app/ATBQT/logo/logo_betterPark.png
feature_Log=off
feature_TouchFeedback=off
feature_SystemSuspend=off
feature_StartButton=on
feature_selfOOO=off
feature_DBusDisplayControl=on
feature_DBusSuspendControl=off
feature_ShowParkingTime=off
touch_feedback_gpio=121
touch_feedback_on_value=1
touch_feedback_off_value=0
#ooo_mode={useDisk|otherMachine}
ooo_mode=otherMachine
sellTimeout_time=120
LicencePlateExampleString=HOAB123
showInfoButton=false
showHelpButton=false
[PLUGINS]
CalculatePricePlugin=ATB_Soap_CalculatePricePlugin
SimulationPlugin=TouchSimulationPlugin
CCPlugin=TCP_ZVT_CCPlugin
[TCP_ZVT_CCPlugin]
CurrencyCode=EUR
debug=1
IP=192.168.5.242
Port=22000
SSL=0
ZVT=DE
sleep=1
printIntermediateStatus=1
Password=277296
preAuthReservation=2500
[ATB_Soap_CalculatePricePlugin]
#useRFID=yes
#useBarcode=yes
useDebug=true
ignoreSslErrors=true
protocol=https
host=atb-api.nexobility.de
port=443
service=
areaId=1
deviceId=1
Password=12335
UserName=user
useSystemSetting=1
fallbackThreshold=1
connectionTimeout=7
maxOfflineTransactions=1000
[SCREENCONFIG]
sc_31="1,1,0"
sc_33="1,0,1"
sc_3F="1,0,0"
sc_40="1,1,1"
sc_41="1,0,0"
sc_35="0,0,0"
sc_51="1,0,1"
sc_52="1,0,0"
sc_55="1,0,0"
sc_82="1,0,0"
[mmmmmmmmmmmmmmm]
[ERRORCODE_MAPPING]
VOUCHER:PROCESS=0xFA30
VOUCHER:SOAP=0xFA31
VOUCHER:TYPE=FA32
VOUCHER:SERVICE=FA33
VOUCHER:VALIDITY=FA34
120103004=FA35
-7
View File
@@ -1,7 +0,0 @@
{
"xxx" : "yyyy",
"xxx" : "yyyy",
"xxx" : "yyyy",
"xxx" : "yyyy",
"xxx" : "yyyy"
}
+50 -6
View File
@@ -1,6 +1,50 @@
{ [COMMON]
"wwwww" : "zzzzzz", startBacklightController=1
"wwwww" : "zzzzzz", startSuspendController=1
"wwwww" : "zzzzzz", startMonitoringController=0
"wwwww" : "zzzzzz" startMQTTController=0
}
[BACKLIGHT]
inputBrightness=80
curve=1
dimLowValue=1
SensorMax=3500
SensorMin=0
dimMin=20
dimMax=100
[SUSPEND]
program=/home/root/system_powerdown_wakeup.sh
[MONITORING]
protocol=mqtt
useDeviceId=on
monitoring_heartbeatInterval=60
[MQTT]
mqtt_host=mqtt2.atb-comm.de
mqtt_port=8883
mqtt_username=testuser
mqtt_password=xyz123
mqtt_useSsl=on
mqtt_debug=on
mqtt_QoS=0
mqtt_TopicScheme=ATB_ISMAS
mqtt_TopicDeviceType=MP
mqtt_TopicPrefix=ATB
[NETWORKCHECK]
useNetworkCheck=on
setOOO=off
PingHost=google.com
networkRestart="/sbin/ifup -a"
[AT_TASKS]
size=1
1\id=PTU5UPDATE
1\program="/opt/app/tools/atbupdate/PTUGitInstaller"
1\arguments="-q,--platform,wayland"
1\hourOfDay=1
-4
View File
@@ -1,4 +0,0 @@
{
"aaaaaa" : "bbbbb",
"aaaaaa" : "bbbbb"
}
BIN
View File
Binary file not shown.
+6321 -6027
View File
File diff suppressed because it is too large Load Diff
+27 -19
View File
@@ -1,28 +1,36 @@
{ {
"title":"DC2C_pri01", "title":"DC2C_pri01",
"project":"DBM Szeged", "project":"DBM Szeged park_coins",
"version":"13.02.2023 12:20 00001", "issued":"13.04.2023 01.01",
"styl":"bold on", "styl":"size 01",
"text":"Parkingticket ", "text":"PARKOLÓJEGY",
"styl":"bold off", "styl":"size 11",
"feed":"nl", "feed":"nl",
"text":"Parkingticket ", "text":"Nyugta",
"styl":"under on", "styl":"size 00",
"text":"Parkingticket ",
"styl":"under off",
"feed":"nl", "feed":"nl",
"text":"Parkingticket ",
"styl":"latin on",
"text":"Parkingticket ",
"styl":"latin off",
"feed":"nl", "feed":"nl",
"text":"Parkingticket ", "text":"mögé jól láthatóan",
"styl":"font 09", "feed":"nl",
"text":"Park ", "text":"elhelyezni!",
"styl":"font 16", "feed":"nl",
"text":"Park ", "text":"A PARKOLÓ NEM ŐRZÖTT!",
"feed":"nl",
"styl":"size 10",
"text":"Rendszám: ",
"styl":"size 00",
"feed":"nl",
"vari":"Dynamic01",
"feed":"nl",
"text":"Parkolási idõ vége:",
"vari":"Dynamic02",
"vari":"Dynamic03",
"feed":"nl",
"text":"Parkolás helye:",
"vari":"location",
"text":"Összeg: ",
"vari":"Dynamic04",
"feed":"nl", "feed":"nl",
"":"" "":""
} }
+27 -1
View File
@@ -1,5 +1,31 @@
{ {
"title":"DC2C_pri02", "title":"DC2C_pri02",
"version":"27.02.2023 12:20 00001", "project":"DBM Szeged park_coins",
"issued":"13.04.2023 01.01",
"text":"Kiadás időpontja:",
"vari":"date us",
"vari":"time long",
"text":"Automata száma: ",
"vari":"manu",
"feed":"nl",
"text":"Park.jegy sorsz.: ",
"vari":"TickCtr",
"feed":"nl",
"text":"Szegedi Közlekedési Kft",
"feed":"nl",
"text":"6720 Szeged ",
"feed":"nl",
"text":"Zrínyi utca 4-8",
"feed":"nl",
"text":"Adósz: 11092612-2-06",
"feed":"nl",
"text":"A jegy ára az ÁFA-t",
"feed":"nl",
"text":" tartalmazza!",
"feed":"nl",
"text":"Üf. szolg nyitvatartás:",
"feed":"nl",
"":"" "":""
} }
+17 -1
View File
@@ -1,5 +1,21 @@
{ {
"title":"DC2C_pri03", "title":"DC2C_pri03",
"version":"27.02.2023 12:20 00001", "project":"DBM Szeged park_coins",
"issued":"13.04.2023 01.01",
"text":"H - P: 7:45 - 17:00",
"feed":"nl",
"text":"Tel: (80) 820-500",
"feed":"nl",
"text":"Parkoljon egy érintéssel. ",
"feed":"nl",
"text":"Használja bankkártyáját ",
"feed":"nl",
"text":" automatáinknál is!",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"eject",i
"":"" "":""
} }
+1 -1
View File
@@ -2,5 +2,5 @@
"title":"DC2C_pri32", "title":"DC2C_pri32",
"version":"27.02.2023 12:20 00001", "version":"27.02.2023 12:20 00001",
"":"", "":"",
"":"10001" "":"8:50 3.April"
} }
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+10
View File
@@ -0,0 +1,10 @@
{}
dfasdf
yyyyy
rrrr
uuuu
hhhhhhhhhhhhhhhhhh
uuuuuu
View File
-6
View File
@@ -1,6 +0,0 @@
{
"" : "",
"" : "",
"" : ""
}
-6
View File
@@ -1,6 +0,0 @@
{
"xxx" : "yyyy",
"xxx" : "yyyy",
"xxx" : "yyyy",
"xxx" : "yyyy"
}
-1
View File
@@ -1 +0,0 @@
ffff
-3
View File
@@ -1,3 +0,0 @@
{
"aaaaaa" : "bbbbb"
}