eaglelandsonce commited on
Commit
d3e89a0
·
verified ·
1 Parent(s): 40e31ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +256 -0
app.py CHANGED
@@ -454,6 +454,262 @@ with tab1:
454
 
455
  """)
456
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
457
  with tab2:
458
 
459
  st.header("Becoming a Global Citizen")
 
454
 
455
  """)
456
 
457
+
458
+ if st.button('Show/Hide Green Data City"'):
459
+ # Toggle visibility
460
+ st.session_state.show_city = not st.session_state.get('show_instructions', False)
461
+ st.write("""
462
+ """
463
+
464
+ {
465
+ "city": "Green Smart Village",
466
+ "population": 10000,
467
+ "size": {
468
+ "rows": 21,
469
+ "columns": 21
470
+ },
471
+ "buildings": [
472
+ {
473
+ "coords": [1, 1],
474
+ "type": "residential",
475
+ "size": 4,
476
+ "color": "Light Blue",
477
+ "sensors": ["Smart meters", "Water flow sensors", "Temperature and humidity sensors"]
478
+ },
479
+ {
480
+ "coords": [1, 6],
481
+ "type": "commercial",
482
+ "size": 3,
483
+ "color": "Green",
484
+ "sensors": ["Occupancy sensors", "Smart meters", "HVAC control systems"]
485
+ },
486
+ {
487
+ "coords": [1, 11],
488
+ "type": "community_facilities",
489
+ "size": 1,
490
+ "color": "Yellow",
491
+ "sensors": ["Smart lighting", "Security cameras", "Occupancy sensors"]
492
+ },
493
+ {
494
+ "coords": [1, 15],
495
+ "type": "school",
496
+ "size": 2,
497
+ "color": "Yellow",
498
+ "sensors": ["Indoor air quality sensors", "Smart lighting systems", "Energy consumption monitors"]
499
+ },
500
+ {
501
+ "coords": [6, 1],
502
+ "type": "healthcare_facility",
503
+ "size": 2,
504
+ "color": "Yellow",
505
+ "sensors": ["Patient monitoring systems", "Environmental monitoring sensors", "Energy management systems"]
506
+ },
507
+ {
508
+ "coords": [6, 6],
509
+ "type": "green_space",
510
+ "size": 6,
511
+ "color": "Dark Green",
512
+ "sensors": ["Soil moisture sensors", "Smart irrigation systems", "Environmental monitoring sensors"]
513
+ },
514
+ {
515
+ "coords": [6, 15],
516
+ "type": "utility_infrastructure",
517
+ "size": 2,
518
+ "color": "Dark Green",
519
+ "sensors": ["Smart meters", "Leak detection sensors", "Grid monitoring sensors"]
520
+ },
521
+ {
522
+ "coords": [11, 1],
523
+ "type": "emergency_services",
524
+ "size": 3,
525
+ "color": "Red",
526
+ "sensors": ["GPS tracking for vehicles", "Smart building sensors", "Dispatch management systems"]
527
+ },
528
+ {
529
+ "coords": [11, 6],
530
+ "type": "cultural_facilities",
531
+ "size": 2,
532
+ "color": "Purple",
533
+ "sensors": ["Environmental monitoring sensors", "Occupancy sensors", "Smart lighting"]
534
+ },
535
+ {
536
+ "coords": [11, 11],
537
+ "type": "recreational_facilities",
538
+ "size": 3,
539
+ "color": "Purple",
540
+ "sensors": ["Air quality sensors", "Smart equipment maintenance sensors", "Energy management systems"]
541
+ },
542
+ {
543
+ "coords": [11, 15],
544
+ "type": "innovation_center",
545
+ "size": 2,
546
+ "color": "Green",
547
+ "sensors": ["High-speed internet connectivity", "Energy consumption monitoring", "Smart security systems"]
548
+ },
549
+ {
550
+ "coords": [16, 1],
551
+ "type": "elderly_care_home",
552
+ "size": 1,
553
+ "color": "Yellow",
554
+ "sensors": ["Patient monitoring sensors", "Environmental control systems", "Security systems"]
555
+ },
556
+ {
557
+ "coords": [16, 6],
558
+ "type": "childcare_centers",
559
+ "size": 1,
560
+ "color": "Yellow",
561
+ "sensors": ["Indoor air quality sensors", "Security cameras", "Occupancy sensors"]
562
+ },
563
+ {
564
+ "coords": [16, 11],
565
+ "type": "places_of_worship",
566
+ "size": 2,
567
+ "color": "Purple",
568
+ "sensors": ["Smart lighting", "Energy consumption monitoring", "Security cameras"]
569
+ },
570
+ {
571
+ "coords": [16, 15],
572
+ "type": "event_spaces",
573
+ "size": 2,
574
+ "color": "Purple",
575
+ "sensors": ["Smart HVAC systems", "Occupancy sensors", "Smart lighting"]
576
+ },
577
+ {
578
+ "coords": [16, 19],
579
+ "type": "guest_housing",
580
+ "size": 1,
581
+ "color": "Orange",
582
+ "sensors": ["Smart locks", "Energy management systems", "Water usage monitoring"]
583
+ },
584
+ {
585
+ "coords": [19, 16],
586
+ "type": "pet_care_facilities",
587
+ "size": 1,
588
+ "color": "Orange",
589
+ "sensors": ["Environmental monitoring sensors", "Security systems", "Smart inventory management systems"]
590
+ },
591
+ {
592
+ "coords": [19, 11],
593
+ "type": "public_sanitation_facilities",
594
+ "size": 1,
595
+ "color": "Grey",
596
+ "sensors": ["Waste level sensors", "Fleet management systems for sanitation vehicles", "Air quality sensors"]
597
+ },
598
+ {
599
+ "coords": [19, 6],
600
+ "type": "environmental_monitoring_stations",
601
+ "size": 1,
602
+ "color": "Dark Green",
603
+ "sensors": ["Air quality sensors", "Weather stations", "Pollution monitors"]
604
+ },
605
+ {
606
+ "coords": [19, 1],
607
+ "type": "disaster_preparedness_center",
608
+ "size": 1,
609
+ "color": "Grey",
610
+ "sensors": ["Early warning systems", "Communication networks", "Environmental sensors"]
611
+ },
612
+ {
613
+ "coords": [10, 10],
614
+ "type": "outdoor_community_spaces",
615
+ "size": 2,
616
+ "color": "Dark Green",
617
+ "sensors": ["Environmental sensors", "Smart irrigation systems", "Adaptive lighting systems"]
618
+ },
619
+ {
620
+ "coords": [0, 0],
621
+ "type": "Typical Road",
622
+ "size": 1,
623
+ "color": "Dark Grey",
624
+ "sensors": ["Traffic flow sensors", "Smart streetlights", "Pollution monitoring sensors"]
625
+ },
626
+ {
627
+ "coords": [4, 14],
628
+ "type": "Typical Road Crossing",
629
+ "size": 1,
630
+ "color": "Dark Grey",
631
+ "sensors": ["Traffic flow sensors", "Smart streetlights", "Pollution monitoring sensors"]
632
+ }
633
+ ],
634
+ "roads": [
635
+ {
636
+ "start": [0, 0],
637
+ "end": [20, 0],
638
+ "color": "#898989",
639
+ "sensors": ["Traffic flow sensors", "Smart streetlights", "Pollution monitoring sensors"]
640
+ },
641
+ {
642
+ "start": [0, 1],
643
+ "end": [0, 20],
644
+ "color": "#898989",
645
+ "sensors": ["Traffic flow sensors", "Smart streetlights", "Pollution monitoring sensors"]
646
+ },
647
+ {
648
+ "start": [20, 1],
649
+ "end": [20, 20],
650
+ "color": "#898989",
651
+ "sensors": ["Traffic flow sensors", "Smart streetlights", "Pollution monitoring sensors"]
652
+ },
653
+ {
654
+ "start": [0, 20],
655
+ "end": [20, 20],
656
+ "color": "#898989",
657
+ "sensors": ["Traffic flow sensors", "Smart streetlights", "Pollution monitoring sensors"]
658
+ },
659
+ {
660
+ "start": [4, 1],
661
+ "end": [4, 20],
662
+ "color": "#898989",
663
+ "sensors": ["Traffic flow sensors", "Smart streetlights", "Pollution monitoring sensors"]
664
+ },
665
+ {
666
+ "start": [14, 1],
667
+ "end": [14, 20],
668
+ "color": "#898989",
669
+ "sensors": ["Traffic flow sensors", "Smart streetlights", "Pollution monitoring sensors"]
670
+ },
671
+ {
672
+ "start": [0, 4],
673
+ "end": [20, 4],
674
+ "color": "#898989",
675
+ "sensors": ["Traffic flow sensors", "Smart streetlights", "Pollution monitoring sensors"]
676
+ },
677
+ {
678
+ "start": [0, 14],
679
+ "end": [20, 14],
680
+ "color": "#898989",
681
+ "sensors": ["Traffic flow sensors", "Smart streetlights", "Pollution monitoring sensors"]
682
+ },
683
+ {
684
+ "start": [8, 5],
685
+ "end": [8, 5],
686
+ "color": "#898989",
687
+ "sensors": ["Traffic flow sensors", "Smart streetlights", "Pollution monitoring sensors"]
688
+ },
689
+ {
690
+ "start": [5, 11],
691
+ "end": [5, 11],
692
+ "color": "#898989",
693
+ "sensors": ["Traffic flow sensors", "Smart streetlights", "Pollution monitoring sensors"]
694
+ },
695
+ {
696
+ "start": [6, 15],
697
+ "end": [6, 15],
698
+ "color": "#898989",
699
+ "sensors": ["Traffic flow sensors", "Smart streetlights", "Pollution monitoring sensors"]
700
+ },
701
+ {
702
+ "start": [11, 15],
703
+ "end": [11, 15],
704
+ "color": "#898989",
705
+ "sensors": ["Traffic flow sensors", "Smart streetlights", "Pollution monitoring sensors"]
706
+ }
707
+ ]
708
+ }
709
+
710
+ """)
711
+
712
+
713
  with tab2:
714
 
715
  st.header("Becoming a Global Citizen")