...
Code Block |
---|
pinger-and1.amity.edu 192.168.0.100 www.andi.dz 213.179.181.44 100 1584526700 10 10 366.348 468.286 1022.335 1 2 3 4 5 6 7 8 9 10 387 410 434 463 380 403 432 1022 366 381 ; 28.5942222 77.29477718 pinger-and1.amity.edu 192.168.0.100 waib.gouv.bj 81.91.232.2 100 1584526739 0 30 ; 28.5942222 77.29477718 pinger-and1.amity.edu 192.168.0.100 www.univ 212.52.131.9 100 1584526739 10 10 342.097 414.403 471.318 1 2 3 4 5 6 7 8 9 10 342 431 458 378 402 423 447 471 389 399 ; 28.5942222 77.29477718 pinger-and1.amity.edu 192.168.0.100 assemblee.bi 173.249.52.118 100 1584526749 10 10 160.730 309.413 998.790 1 2 3 4 5 6 7 8 9 10 160 164 225 227 257 998 206 230 254 368 ; 28.5942222 77.29477718 pinger-and1.amity.edu 192.168.0.100 cmsf.cv 213.150.196.36 100 1584526758 10 10 353.646 530.848 954.487 1 2 3 4 5 6 7 8 9 10 360 695 422 432 353 379 402 924 954 383 ; 28.5942222 77.29477718 pinger-and1.amity.edu 192.168.0.100 www.andi.dz 213.179.181.44 100 1584528880 10 10 354.024 458.614 922.058 1 2 3 4 5 6 7 8 9 10 408 433 456 375 400 922 446 354 376 412 ; 28.5941693 77.2947071 pinger-and1.amity.edu 192.168.0.100 waib.gouv.bj 81.91.232.2 100 1584528920 0 30 ; 28.5941693 77.2947071 pinger-and1.amity.edu 192.168.0.100 www.univ 212.52.131.9 100 1584528920 10 11 358.509 475.244 927.777 1 2 3 4 5 6 8 9 10 11 358 482 402 927 451 472 399 421 458 377 ; 28.5941693 77.2947071 pinger-and1.amity.edu 192.168.0.100 assemblee.bi 173.249.52.118 100 1584528930 10 11 160.074 324.773 967.567 1 2 3 4 5 6 8 9 10 11 251 274 299 219 241 967 298 160 259 276 ; 28.5941693 77.2947071 pinger-and1.amity.edu 192.168.0.100 cmsf.cv 213.150.196.36 100 1584528942 10 10 330.181 489.186 1003.637 1 2 3 4 5 6 7 8 9 10 408 430 351 376 1003 417 330 456 390 725 ; 28.5941693 77.2947071 pinger-and1.amity.edu 192.168.0.100 www.andi.dz 213.179.181.44 100 1584528961 10 10 374.702 423.526 469.632 1 2 3 4 5 6 7 8 9 10 452 374 398 421 445 469 385 400 424 461 ; 28.59418655 77.29478424 pinger-and1.amity.edu 192.168.0.100 waib.gouv.bj 81.91.232.2 100 1584529000 0 30 ; 28.59418655 77.29478424 pinger-and1.amity.edu 192.168.0.100 www.univ 212.52.131.9 100 1584529000 10 13 400.512 463.178 555.022 1 3 4 5 6 7 8 10 12 13 400 464 469 489 425 532 443 420 431 555 ; 28.59418655 77.29478424 pinger-and1.amity.edu 192.168.0.100 assemblee.bi 173.249.52.118 100 1584529013 10 10 155.725 245.308 454.052 1 2 3 4 5 6 7 8 9 10 249 266 291 214 234 155 156 203 226 454 ; 28.59418655 77.29478424 pinger-and1.amity.edu 192.168.0.100 cmsf.cv 213.150.196.36 100 1584529022 10 10 326.824 455.570 1005.206 1 2 3 4 5 6 7 8 9 10 347 370 392 414 433 343 571 1005 326 349 ; 28.59418655 77.29478424 |
Converting json data file to text file
There is a Python script json_to_dict.py see below:
Code Block |
---|
import json
with open('pinger-7db5c-export.json') as json_file:
data = json.load(json_file)
#print(type(data))
ping_data = data['Ping']
required_format = ['monitor_Host_Name', 'monitor_Addr', 'remote_Name', 'remote_Addr', 'bytes', 'time', 'xmt', 'rcv', 'min', 'avg', 'max', 'seq', 'rtt', 'latitude', 'longitude']
file = open("PingER.txt", "w")
#file.write("Monitor_Host_Name Monitor_Addr Remote_Name Remote_Addr Bytes Time Xmt Rcv Min Avg Max Seq Rtt Latitude Longitude\n\n")
for keys in ping_data.keys():
parameters = ping_data[keys]
#print(parameters)
#print('\n')
new_dict={}
for val in required_format:
if val in parameters.keys():
new_dict[val] = parameters[val]
for value in new_dict:
if(type(new_dict[value]) is list):
for v in new_dict[value]:
v = str(v)
v = v + ' '
file.write(v)
elif(value == 'latitude'):
value = str(new_dict[value])
value = '; ' + value + ' '
file.write(value)
elif(value == 'time'):
value = str(new_dict[value])
value = value[1:len(value)-1]
value = value + ' '
file.write(value)
elif(value == 'xmt' or value == 'rcv'):
value = str(new_dict[value])
value = value
file.write(value)
else:
value = str(new_dict[value])
value = value + ' '
file.write(value)
file.write('\n') |
Firebase pricing
Firebase provides two plans to choose from. The one which we are currently on is called the Spark Plan. It is a free plan that provides generous data limits. As our application grows we would need to adopt the Blaze plan. The blaze plan is a “Pay as you go” plan as indicated on the website. It is a post billing service which means that you get billed for your usage at the end of the month.
...