Let me know what you think
I have left the old code in and some of the datasources in case I find another source to get me all the info I want
Data Input ethod:
Name: COVID19_Script
Input Type: Script/Command
Input String: php <path_cacti>/scripts/covid-19-Australia-Confirmed.php
Output Fields (Bold ones are the ones that ae working)
ACT Canberra Selected
AUST_ACTIVE AUST_ACTIVE Selected
AUST_CASES AUST_CASES Selected
AUST_DEATH AUST_DEATH Selected
AUST_RECOVER AUST_RECOVER Selected
Australia Australia_Cases Selected
NSW New_South_Wales Selected
NT Northern_Territory Selected
QLD Queensland Selected
SA South_Australia Selected
TAS Tasmania Selected
VIC Victoria Selected
WA Western_Australia Selected
Data Template
Code: Select all
<cacti>
<hash_010102864880b09ba71896e70c5d3450b5e0da>
<name>COVID19</name>
<ds>
<t_name/>
<name> |host_description| - COVID19 Stats</name>
<data_source_path/>
<data_input_id>hash_030102910294d4ad333a324eb0a1d4cea761d3</data_input_id>
<t_data_source_profile_id/>
<data_source_profile_id>hash_200102d62c52891f4f9688729a5bc9fad91b18</data_source_profile_id>
<t_rrd_step/>
<rrd_step>300</rrd_step>
<t_active/>
<active>on</active>
</ds>
<items>
<hash_08010221ea39debe698430b856a0644eb4f90d>
<t_data_source_name/>
<data_source_name>AUST_ACTIVE</data_source_name>
<t_rrd_minimum/>
<rrd_minimum>U</rrd_minimum>
<t_rrd_maximum/>
<rrd_maximum>U</rrd_maximum>
<t_data_source_type_id/>
<data_source_type_id>1</data_source_type_id>
<t_rrd_heartbeat/>
<rrd_heartbeat>600</rrd_heartbeat>
<t_data_input_field_id/>
<data_input_field_id>hash_0701027d676c1c04ec4d9f524f5320f1ba1dfc</data_input_field_id>
</hash_08010221ea39debe698430b856a0644eb4f90d>
<hash_080102e1de37041e54f178334c962fdc578acf>
<t_data_source_name/>
<data_source_name>AUST_DEATH</data_source_name>
<t_rrd_minimum/>
<rrd_minimum>U</rrd_minimum>
<t_rrd_maximum/>
<rrd_maximum>U</rrd_maximum>
<t_data_source_type_id/>
<data_source_type_id>1</data_source_type_id>
<t_rrd_heartbeat/>
<rrd_heartbeat>600</rrd_heartbeat>
<t_data_input_field_id/>
<data_input_field_id>hash_0701025f2840f23ee0f5f550956559baecfce7</data_input_field_id>
</hash_080102e1de37041e54f178334c962fdc578acf>
<hash_080102d913bed9ae896940583267f4426175bc>
<t_data_source_name/>
<data_source_name>AUST_CASES</data_source_name>
<t_rrd_minimum/>
<rrd_minimum>U</rrd_minimum>
<t_rrd_maximum/>
<rrd_maximum>U</rrd_maximum>
<t_data_source_type_id/>
<data_source_type_id>1</data_source_type_id>
<t_rrd_heartbeat/>
<rrd_heartbeat>600</rrd_heartbeat>
<t_data_input_field_id/>
<data_input_field_id>hash_07010258db83b271f9e280f7d9aa1ed1e5d58b</data_input_field_id>
</hash_080102d913bed9ae896940583267f4426175bc>
<hash_080102fac2aef61e8a04fdb3ff03af9192536f>
<t_data_source_name/>
<data_source_name>AUST_RECOVER</data_source_name>
<t_rrd_minimum/>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum/>
<rrd_maximum>U</rrd_maximum>
<t_data_source_type_id/>
<data_source_type_id>1</data_source_type_id>
<t_rrd_heartbeat/>
<rrd_heartbeat>600</rrd_heartbeat>
<t_data_input_field_id/>
<data_input_field_id>hash_070102fc7d47ed097f93949928333955523ee0</data_input_field_id>
</hash_080102fac2aef61e8a04fdb3ff03af9192536f>
</items>
<data> </data>
</hash_010102864880b09ba71896e70c5d3450b5e0da>
<hash_030102910294d4ad333a324eb0a1d4cea761d3>
<name>COVID19_Script</name>
<type_id>1</type_id>
<input_string>
cGhwIDxwYXRoX2NhY3RpPi9zY3JpcHRzL2NvdmlkLTE5LUF1c3RyYWxpYS1Db25maXJtZWQucGhw
</input_string>
<fields>
<hash_070102415f6d213400832a776562bb387515b4>
<name>Australia_Cases</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>Australia</data_name>
</hash_070102415f6d213400832a776562bb387515b4>
<hash_070102e421e39d9f7930e9e65210adf60d4e10>
<name>New_South_Wales</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>NSW</data_name>
</hash_070102e421e39d9f7930e9e65210adf60d4e10>
<hash_0701027da0ce2238e5420018800bf228f92dce>
<name>Queensland</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>QLD</data_name>
</hash_0701027da0ce2238e5420018800bf228f92dce>
<hash_070102a6ee7d93958cccf9cfed5e1a5b01bf73>
<name>South_Australia</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>SA</data_name>
</hash_070102a6ee7d93958cccf9cfed5e1a5b01bf73>
<hash_070102e9a69b5cf737f136de307881b67d135d>
<name>Western_Australia</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>WA</data_name>
</hash_070102e9a69b5cf737f136de307881b67d135d>
<hash_070102af2d367e8d85a57de7f52fb7cddc4083>
<name>Northern_Territory</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>NT</data_name>
</hash_070102af2d367e8d85a57de7f52fb7cddc4083>
<hash_0701026e051268aba21005a118afc33a802d75>
<name>Canberra</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>ACT</data_name>
</hash_0701026e051268aba21005a118afc33a802d75>
<hash_0701029cdccbd8e113c0ae290a9cb35682d1c8>
<name>Tasmania</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>TAS</data_name>
</hash_0701029cdccbd8e113c0ae290a9cb35682d1c8>
<hash_070102c73d3fa41af29992bc8c24bbfe20373a>
<name>Victoria</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>VIC</data_name>
</hash_070102c73d3fa41af29992bc8c24bbfe20373a>
<hash_0701027d676c1c04ec4d9f524f5320f1ba1dfc>
<name>AUST_ACTIVE</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>AUST_ACTIVE</data_name>
</hash_0701027d676c1c04ec4d9f524f5320f1ba1dfc>
<hash_0701025f2840f23ee0f5f550956559baecfce7>
<name>AUST_DEATH</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>AUST_DEATH</data_name>
</hash_0701025f2840f23ee0f5f550956559baecfce7>
<hash_070102fc7d47ed097f93949928333955523ee0>
<name>AUST_RECOVER</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>AUST_RECOVER</data_name>
</hash_070102fc7d47ed097f93949928333955523ee0>
<hash_07010258db83b271f9e280f7d9aa1ed1e5d58b>
<name>AUST_CASES</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>AUST_CASES</data_name>
</hash_07010258db83b271f9e280f7d9aa1ed1e5d58b>
</fields>
</hash_030102910294d4ad333a324eb0a1d4cea761d3>
<hash_200102d62c52891f4f9688729a5bc9fad91b18>
<name>System Default</name>
<step>300</step>
<heartbeat>600</heartbeat>
<x_files_factor>0.5</x_files_factor>
<default>on</default>
<cf_items>1|2|3|4</cf_items>
<items>
<item_000>
<name>Daily (5 Minute Average)</name>
<steps>1</steps>
<rows>600</rows>
<timespan>172800</timespan>
</item_000>
<item_001>
<name>Weekly (30 Minute Average)</name>
<steps>6</steps>
<rows>700</rows>
<timespan>1209600</timespan>
</item_001>
<item_002>
<name>Monthly (2 Hour Average)</name>
<steps>24</steps>
<rows>775</rows>
<timespan>5237568</timespan>
</item_002>
<item_003>
<name>Yearly (1 Day Average)</name>
<steps>288</steps>
<rows>797</rows>
<timespan>63072000</timespan>
</item_003>
</items>
</hash_200102d62c52891f4f9688729a5bc9fad91b18>
</cacti>
Code: Select all
<cacti>
<hash_0001024df9b09555bf9a2dd21dc50f9dbda15f>
<name>COVID19</name>
<graph>
<t_title/>
<title>COVID19</title>
<t_vertical_label/>
<vertical_label>COVID19</vertical_label>
<t_image_format_id/>
<image_format_id>1</image_format_id>
<t_height/>
<height>150</height>
<t_width/>
<width>500</width>
<t_base_value/>
<base_value>1000</base_value>
<t_slope_mode/>
<slope_mode>on</slope_mode>
<t_auto_scale/>
<auto_scale>on</auto_scale>
<t_auto_scale_opts/>
<auto_scale_opts>2</auto_scale_opts>
<t_auto_scale_log/>
<auto_scale_log/>
<t_scale_log_units/>
<scale_log_units/>
<t_auto_scale_rigid/>
<auto_scale_rigid/>
<t_upper_limit/>
<upper_limit>100</upper_limit>
<t_lower_limit/>
<lower_limit>0</lower_limit>
<t_unit_value/>
<unit_value/>
<t_unit_exponent_value/>
<unit_exponent_value/>
<t_unit_length/>
<unit_length/>
<t_no_gridfit/>
<no_gridfit/>
<t_alt_y_grid/>
<alt_y_grid/>
<t_right_axis/>
<right_axis/>
<t_right_axis_label/>
<right_axis_label/>
<t_right_axis_format/>
<right_axis_format>0</right_axis_format>
<t_right_axis_formatter/>
<right_axis_formatter>0</right_axis_formatter>
<t_left_axis_formatter/>
<left_axis_formatter>0</left_axis_formatter>
<t_auto_padding/>
<auto_padding>on</auto_padding>
<t_dynamic_labels/>
<dynamic_labels/>
<t_force_rules_legend/>
<force_rules_legend/>
<t_tab_width/>
<tab_width/>
<t_legend_position/>
<legend_position>0</legend_position>
<t_legend_direction/>
<legend_direction>0</legend_direction>
</graph>
<items>
<hash_1001028edd78f687c0284d02753b829985eb56>
<graph_type_id>4</graph_type_id>
<task_item_id>hash_08010221ea39debe698430b856a0644eb4f90d</task_item_id>
<color_id>0000FF</color_id>
<alpha>FF</alpha>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_060102e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<textalign/>
<text_format>Active:</text_format>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>1</sequence>
</hash_1001028edd78f687c0284d02753b829985eb56>
<hash_100102437d903f3db26958f24d9290bd9ace1e>
<graph_type_id>7</graph_type_id>
<task_item_id>hash_08010221ea39debe698430b856a0644eb4f90d</task_item_id>
<color_id>0000FF</color_id>
<alpha>4C</alpha>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_060102e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<textalign/>
<text_format/>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>2</sequence>
</hash_100102437d903f3db26958f24d9290bd9ace1e>
<hash_1001026772cf6e5711efa0ca24a88f642714c1>
<graph_type_id>9</graph_type_id>
<task_item_id>hash_08010221ea39debe698430b856a0644eb4f90d</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_06010219414480d6897c8731c7dc6c5310653e</gprint_id>
<textalign/>
<text_format>AVG:</text_format>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>3</sequence>
</hash_1001026772cf6e5711efa0ca24a88f642714c1>
<hash_1001024b3943a34312f35b17e6894974eb6954>
<graph_type_id>9</graph_type_id>
<task_item_id>hash_08010221ea39debe698430b856a0644eb4f90d</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<consolidation_function_id>2</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_06010219414480d6897c8731c7dc6c5310653e</gprint_id>
<textalign/>
<text_format>MIN:</text_format>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>4</sequence>
</hash_1001024b3943a34312f35b17e6894974eb6954>
<hash_10010204f47dc30c2a1b2ce4662a0d23a0283d>
<graph_type_id>9</graph_type_id>
<task_item_id>hash_08010221ea39debe698430b856a0644eb4f90d</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<consolidation_function_id>3</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_06010219414480d6897c8731c7dc6c5310653e</gprint_id>
<textalign/>
<text_format>MAX:</text_format>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>5</sequence>
</hash_10010204f47dc30c2a1b2ce4662a0d23a0283d>
<hash_100102d4561bdc93cbecbb700a566ef1c14787>
<graph_type_id>9</graph_type_id>
<task_item_id>hash_08010221ea39debe698430b856a0644eb4f90d</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<consolidation_function_id>4</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_06010219414480d6897c8731c7dc6c5310653e</gprint_id>
<textalign/>
<text_format>LAST:</text_format>
<hard_return>on</hard_return>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>6</sequence>
</hash_100102d4561bdc93cbecbb700a566ef1c14787>
<hash_100102970f70cba285625bddfd3011da9b5909>
<graph_type_id>4</graph_type_id>
<task_item_id>hash_080102e1de37041e54f178334c962fdc578acf</task_item_id>
<color_id>C24641</color_id>
<alpha>FF</alpha>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_060102e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<textalign/>
<text_format>Deaths:</text_format>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>7</sequence>
</hash_100102970f70cba285625bddfd3011da9b5909>
<hash_100102f0c9e4f9b01d231435f2ac13446b26a5>
<graph_type_id>7</graph_type_id>
<task_item_id>hash_080102e1de37041e54f178334c962fdc578acf</task_item_id>
<color_id>C24641</color_id>
<alpha>4C</alpha>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_060102e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<textalign/>
<text_format/>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>8</sequence>
</hash_100102f0c9e4f9b01d231435f2ac13446b26a5>
<hash_100102111f3309dab51f9a136f642ef877f4d1>
<graph_type_id>9</graph_type_id>
<task_item_id>hash_080102e1de37041e54f178334c962fdc578acf</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_06010219414480d6897c8731c7dc6c5310653e</gprint_id>
<textalign/>
<text_format>AVG:</text_format>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>9</sequence>
</hash_100102111f3309dab51f9a136f642ef877f4d1>
<hash_1001024d7d3faa143eb27bea42330700569804>
<graph_type_id>9</graph_type_id>
<task_item_id>hash_080102e1de37041e54f178334c962fdc578acf</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<consolidation_function_id>2</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_06010219414480d6897c8731c7dc6c5310653e</gprint_id>
<textalign/>
<text_format>MIN:</text_format>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>10</sequence>
</hash_1001024d7d3faa143eb27bea42330700569804>
<hash_100102090ff9763c42711a07a26eedcdae2bce>
<graph_type_id>9</graph_type_id>
<task_item_id>hash_080102e1de37041e54f178334c962fdc578acf</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<consolidation_function_id>3</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_06010219414480d6897c8731c7dc6c5310653e</gprint_id>
<textalign/>
<text_format>MAX:</text_format>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>11</sequence>
</hash_100102090ff9763c42711a07a26eedcdae2bce>
<hash_10010224cdca0ed7b756444fc957a6532be287>
<graph_type_id>9</graph_type_id>
<task_item_id>hash_080102e1de37041e54f178334c962fdc578acf</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<consolidation_function_id>4</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_06010219414480d6897c8731c7dc6c5310653e</gprint_id>
<textalign/>
<text_format>LAST:</text_format>
<hard_return>on</hard_return>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>12</sequence>
</hash_10010224cdca0ed7b756444fc957a6532be287>
<hash_100102c0cc7e98d11a6102ee1beec17e7484b0>
<graph_type_id>4</graph_type_id>
<task_item_id>hash_080102d913bed9ae896940583267f4426175bc</task_item_id>
<color_id>00BED9</color_id>
<alpha>FF</alpha>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_060102e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<textalign/>
<text_format>Cases Total:</text_format>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>13</sequence>
</hash_100102c0cc7e98d11a6102ee1beec17e7484b0>
<hash_100102aa342a2c75088ee39ae3fadc98c1ad4a>
<graph_type_id>7</graph_type_id>
<task_item_id>hash_080102d913bed9ae896940583267f4426175bc</task_item_id>
<color_id>00BED9</color_id>
<alpha>4C</alpha>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_060102e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<textalign/>
<text_format/>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>14</sequence>
</hash_100102aa342a2c75088ee39ae3fadc98c1ad4a>
<hash_1001020d6067cbd3c9380d06b8cfb9ae57e457>
<graph_type_id>9</graph_type_id>
<task_item_id>hash_080102d913bed9ae896940583267f4426175bc</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_06010219414480d6897c8731c7dc6c5310653e</gprint_id>
<textalign/>
<text_format>AVG:</text_format>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>15</sequence>
</hash_1001020d6067cbd3c9380d06b8cfb9ae57e457>
<hash_100102b49414a78d6d3aa180e6683fd8db2ed8>
<graph_type_id>9</graph_type_id>
<task_item_id>hash_080102d913bed9ae896940583267f4426175bc</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<consolidation_function_id>2</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_06010219414480d6897c8731c7dc6c5310653e</gprint_id>
<textalign/>
<text_format>MIN:</text_format>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>16</sequence>
</hash_100102b49414a78d6d3aa180e6683fd8db2ed8>
<hash_1001026af42d68a890dbc44b7a1d8f07e1a9ac>
<graph_type_id>9</graph_type_id>
<task_item_id>hash_080102d913bed9ae896940583267f4426175bc</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<consolidation_function_id>3</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_06010219414480d6897c8731c7dc6c5310653e</gprint_id>
<textalign/>
<text_format>MAX:</text_format>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>17</sequence>
</hash_1001026af42d68a890dbc44b7a1d8f07e1a9ac>
<hash_100102c8ce9b0039f16ba990542f81363ad2a2>
<graph_type_id>9</graph_type_id>
<task_item_id>hash_080102d913bed9ae896940583267f4426175bc</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<consolidation_function_id>4</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_06010219414480d6897c8731c7dc6c5310653e</gprint_id>
<textalign/>
<text_format>LAST:</text_format>
<hard_return>on</hard_return>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>18</sequence>
</hash_100102c8ce9b0039f16ba990542f81363ad2a2>
<hash_100102e483f4758027a1ac53bb8c9f0d02b4e9>
<graph_type_id>4</graph_type_id>
<task_item_id>hash_080102fac2aef61e8a04fdb3ff03af9192536f</task_item_id>
<color_id>00FF00</color_id>
<alpha>FF</alpha>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_060102e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<textalign/>
<text_format>Recovered:</text_format>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>19</sequence>
</hash_100102e483f4758027a1ac53bb8c9f0d02b4e9>
<hash_100102fd156a2a5bd3aabc9421c52bd799a6d5>
<graph_type_id>7</graph_type_id>
<task_item_id>hash_080102fac2aef61e8a04fdb3ff03af9192536f</task_item_id>
<color_id>00FF00</color_id>
<alpha>4C</alpha>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_060102e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<textalign/>
<text_format/>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>20</sequence>
</hash_100102fd156a2a5bd3aabc9421c52bd799a6d5>
<hash_1001021bc5b610dfd63827afc3679ad4926840>
<graph_type_id>9</graph_type_id>
<task_item_id>hash_080102fac2aef61e8a04fdb3ff03af9192536f</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_06010219414480d6897c8731c7dc6c5310653e</gprint_id>
<textalign/>
<text_format>AVG:</text_format>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>21</sequence>
</hash_1001021bc5b610dfd63827afc3679ad4926840>
<hash_10010296f1279759d7da88efd1db9002970b7b>
<graph_type_id>9</graph_type_id>
<task_item_id>hash_080102fac2aef61e8a04fdb3ff03af9192536f</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<consolidation_function_id>2</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_06010219414480d6897c8731c7dc6c5310653e</gprint_id>
<textalign/>
<text_format>MIN:</text_format>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>22</sequence>
</hash_10010296f1279759d7da88efd1db9002970b7b>
<hash_1001028199644e25cc9ccb9e20de58fb852668>
<graph_type_id>9</graph_type_id>
<task_item_id>hash_080102fac2aef61e8a04fdb3ff03af9192536f</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<consolidation_function_id>3</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_06010219414480d6897c8731c7dc6c5310653e</gprint_id>
<textalign/>
<text_format>MAX:</text_format>
<hard_return/>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>23</sequence>
</hash_1001028199644e25cc9ccb9e20de58fb852668>
<hash_100102856591b5d18aeba88134d9ccaea5812b>
<graph_type_id>9</graph_type_id>
<task_item_id>hash_080102fac2aef61e8a04fdb3ff03af9192536f</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<consolidation_function_id>4</consolidation_function_id>
<cdef_id>0</cdef_id>
<vdef_id>0</vdef_id>
<shift/>
<value/>
<gprint_id>hash_06010219414480d6897c8731c7dc6c5310653e</gprint_id>
<textalign/>
<text_format>LAST:</text_format>
<hard_return>on</hard_return>
<line_width>1.00</line_width>
<dashes/>
<dash_offset>0</dash_offset>
<sequence>24</sequence>
</hash_100102856591b5d18aeba88134d9ccaea5812b>
</items>
<inputs>
<hash_090102402ceb87a18423d3e0eb4e25a01a8bac>
<name>Data Source [AUST_ACTIVE]</name>
<description/>
<column_name>task_item_id</column_name>
<items>
hash_0001028edd78f687c0284d02753b829985eb56|hash_000102437d903f3db26958f24d9290bd9ace1e|hash_0001026772cf6e5711efa0ca24a88f642714c1|hash_0001024b3943a34312f35b17e6894974eb6954|hash_00010204f47dc30c2a1b2ce4662a0d23a0283d|hash_000102d4561bdc93cbecbb700a566ef1c14787
</items>
</hash_090102402ceb87a18423d3e0eb4e25a01a8bac>
<hash_090102ec7fd95340914c4b48bd9785ba08ddfb>
<name>Data Source [AUST_DEATH]</name>
<description/>
<column_name>task_item_id</column_name>
<items>
hash_000102970f70cba285625bddfd3011da9b5909|hash_000102f0c9e4f9b01d231435f2ac13446b26a5|hash_000102111f3309dab51f9a136f642ef877f4d1|hash_0001024d7d3faa143eb27bea42330700569804|hash_000102090ff9763c42711a07a26eedcdae2bce|hash_00010224cdca0ed7b756444fc957a6532be287
</items>
</hash_090102ec7fd95340914c4b48bd9785ba08ddfb>
<hash_090102ec15d6a8d8481e8cf156fa1681fa5ec2>
<name>Data Source [AUST_CASES]</name>
<description/>
<column_name>task_item_id</column_name>
<items>
hash_000102c0cc7e98d11a6102ee1beec17e7484b0|hash_000102aa342a2c75088ee39ae3fadc98c1ad4a|hash_0001020d6067cbd3c9380d06b8cfb9ae57e457|hash_000102b49414a78d6d3aa180e6683fd8db2ed8|hash_0001026af42d68a890dbc44b7a1d8f07e1a9ac|hash_000102c8ce9b0039f16ba990542f81363ad2a2
</items>
</hash_090102ec15d6a8d8481e8cf156fa1681fa5ec2>
<hash_090102e47cc1f534e62caeb05afc56e8f0d4a4>
<name>Data Source [AUST_RECOVER]</name>
<description/>
<column_name>task_item_id</column_name>
<items>
hash_000102e483f4758027a1ac53bb8c9f0d02b4e9|hash_000102fd156a2a5bd3aabc9421c52bd799a6d5|hash_0001021bc5b610dfd63827afc3679ad4926840|hash_00010296f1279759d7da88efd1db9002970b7b|hash_0001028199644e25cc9ccb9e20de58fb852668|hash_000102856591b5d18aeba88134d9ccaea5812b
</items>
</hash_090102e47cc1f534e62caeb05afc56e8f0d4a4>
</inputs>
</hash_0001024df9b09555bf9a2dd21dc50f9dbda15f>
<hash_010102864880b09ba71896e70c5d3450b5e0da>
<name>COVID19</name>
<ds>
<t_name/>
<name> |host_description| - COVID19 Stats</name>
<data_source_path/>
<data_input_id>hash_030102910294d4ad333a324eb0a1d4cea761d3</data_input_id>
<t_data_source_profile_id/>
<data_source_profile_id>hash_200102d62c52891f4f9688729a5bc9fad91b18</data_source_profile_id>
<t_rrd_step/>
<rrd_step>300</rrd_step>
<t_active/>
<active>on</active>
</ds>
<items>
<hash_08010221ea39debe698430b856a0644eb4f90d>
<t_data_source_name/>
<data_source_name>AUST_ACTIVE</data_source_name>
<t_rrd_minimum/>
<rrd_minimum>U</rrd_minimum>
<t_rrd_maximum/>
<rrd_maximum>U</rrd_maximum>
<t_data_source_type_id/>
<data_source_type_id>1</data_source_type_id>
<t_rrd_heartbeat/>
<rrd_heartbeat>600</rrd_heartbeat>
<t_data_input_field_id/>
<data_input_field_id>hash_0701027d676c1c04ec4d9f524f5320f1ba1dfc</data_input_field_id>
</hash_08010221ea39debe698430b856a0644eb4f90d>
<hash_080102e1de37041e54f178334c962fdc578acf>
<t_data_source_name/>
<data_source_name>AUST_DEATH</data_source_name>
<t_rrd_minimum/>
<rrd_minimum>U</rrd_minimum>
<t_rrd_maximum/>
<rrd_maximum>U</rrd_maximum>
<t_data_source_type_id/>
<data_source_type_id>1</data_source_type_id>
<t_rrd_heartbeat/>
<rrd_heartbeat>600</rrd_heartbeat>
<t_data_input_field_id/>
<data_input_field_id>hash_0701025f2840f23ee0f5f550956559baecfce7</data_input_field_id>
</hash_080102e1de37041e54f178334c962fdc578acf>
<hash_080102d913bed9ae896940583267f4426175bc>
<t_data_source_name/>
<data_source_name>AUST_CASES</data_source_name>
<t_rrd_minimum/>
<rrd_minimum>U</rrd_minimum>
<t_rrd_maximum/>
<rrd_maximum>U</rrd_maximum>
<t_data_source_type_id/>
<data_source_type_id>1</data_source_type_id>
<t_rrd_heartbeat/>
<rrd_heartbeat>600</rrd_heartbeat>
<t_data_input_field_id/>
<data_input_field_id>hash_07010258db83b271f9e280f7d9aa1ed1e5d58b</data_input_field_id>
</hash_080102d913bed9ae896940583267f4426175bc>
<hash_080102fac2aef61e8a04fdb3ff03af9192536f>
<t_data_source_name/>
<data_source_name>AUST_RECOVER</data_source_name>
<t_rrd_minimum/>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum/>
<rrd_maximum>U</rrd_maximum>
<t_data_source_type_id/>
<data_source_type_id>1</data_source_type_id>
<t_rrd_heartbeat/>
<rrd_heartbeat>600</rrd_heartbeat>
<t_data_input_field_id/>
<data_input_field_id>hash_070102fc7d47ed097f93949928333955523ee0</data_input_field_id>
</hash_080102fac2aef61e8a04fdb3ff03af9192536f>
</items>
<data> </data>
</hash_010102864880b09ba71896e70c5d3450b5e0da>
<hash_030102910294d4ad333a324eb0a1d4cea761d3>
<name>COVID19_Script</name>
<type_id>1</type_id>
<input_string>
cGhwIDxwYXRoX2NhY3RpPi9zY3JpcHRzL2NvdmlkLTE5LUF1c3RyYWxpYS1Db25maXJtZWQucGhw
</input_string>
<fields>
<hash_070102415f6d213400832a776562bb387515b4>
<name>Australia_Cases</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>Australia</data_name>
</hash_070102415f6d213400832a776562bb387515b4>
<hash_070102e421e39d9f7930e9e65210adf60d4e10>
<name>New_South_Wales</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>NSW</data_name>
</hash_070102e421e39d9f7930e9e65210adf60d4e10>
<hash_0701027da0ce2238e5420018800bf228f92dce>
<name>Queensland</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>QLD</data_name>
</hash_0701027da0ce2238e5420018800bf228f92dce>
<hash_070102a6ee7d93958cccf9cfed5e1a5b01bf73>
<name>South_Australia</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>SA</data_name>
</hash_070102a6ee7d93958cccf9cfed5e1a5b01bf73>
<hash_070102e9a69b5cf737f136de307881b67d135d>
<name>Western_Australia</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>WA</data_name>
</hash_070102e9a69b5cf737f136de307881b67d135d>
<hash_070102af2d367e8d85a57de7f52fb7cddc4083>
<name>Northern_Territory</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>NT</data_name>
</hash_070102af2d367e8d85a57de7f52fb7cddc4083>
<hash_0701026e051268aba21005a118afc33a802d75>
<name>Canberra</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>ACT</data_name>
</hash_0701026e051268aba21005a118afc33a802d75>
<hash_0701029cdccbd8e113c0ae290a9cb35682d1c8>
<name>Tasmania</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>TAS</data_name>
</hash_0701029cdccbd8e113c0ae290a9cb35682d1c8>
<hash_070102c73d3fa41af29992bc8c24bbfe20373a>
<name>Victoria</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>VIC</data_name>
</hash_070102c73d3fa41af29992bc8c24bbfe20373a>
<hash_0701027d676c1c04ec4d9f524f5320f1ba1dfc>
<name>AUST_ACTIVE</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>AUST_ACTIVE</data_name>
</hash_0701027d676c1c04ec4d9f524f5320f1ba1dfc>
<hash_0701025f2840f23ee0f5f550956559baecfce7>
<name>AUST_DEATH</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>AUST_DEATH</data_name>
</hash_0701025f2840f23ee0f5f550956559baecfce7>
<hash_070102fc7d47ed097f93949928333955523ee0>
<name>AUST_RECOVER</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>AUST_RECOVER</data_name>
</hash_070102fc7d47ed097f93949928333955523ee0>
<hash_07010258db83b271f9e280f7d9aa1ed1e5d58b>
<name>AUST_CASES</name>
<update_rra>on</update_rra>
<regexp_match/>
<allow_nulls/>
<type_code/>
<input_output>out</input_output>
<data_name>AUST_CASES</data_name>
</hash_07010258db83b271f9e280f7d9aa1ed1e5d58b>
</fields>
</hash_030102910294d4ad333a324eb0a1d4cea761d3>
<hash_200102d62c52891f4f9688729a5bc9fad91b18>
<name>System Default</name>
<step>300</step>
<heartbeat>600</heartbeat>
<x_files_factor>0.5</x_files_factor>
<default>on</default>
<cf_items>1|2|3|4</cf_items>
<items>
<item_000>
<name>Daily (5 Minute Average)</name>
<steps>1</steps>
<rows>600</rows>
<timespan>172800</timespan>
</item_000>
<item_001>
<name>Weekly (30 Minute Average)</name>
<steps>6</steps>
<rows>700</rows>
<timespan>1209600</timespan>
</item_001>
<item_002>
<name>Monthly (2 Hour Average)</name>
<steps>24</steps>
<rows>775</rows>
<timespan>5237568</timespan>
</item_002>
<item_003>
<name>Yearly (1 Day Average)</name>
<steps>288</steps>
<rows>797</rows>
<timespan>63072000</timespan>
</item_003>
</items>
</hash_200102d62c52891f4f9688729a5bc9fad91b18>
<hash_060102e9c43831e54eca8069317a2ce8c6f751>
<name>Normal</name>
<gprint_text>%8.2lf %s</gprint_text>
</hash_060102e9c43831e54eca8069317a2ce8c6f751>
<hash_06010219414480d6897c8731c7dc6c5310653e>
<name>Exact Numbers</name>
<gprint_text>%8.0lf</gprint_text>
</hash_06010219414480d6897c8731c7dc6c5310653e>
</cacti>
covid-19-Australia-Confirmed.php
Code: Select all
<?php
$string = file_get_contents('https://www.health.gov.au/news/health-alerts/novel-coronavirus-2019-ncov-health-alert/coronavirus-covid-19-current-situation-and-case-numbers', null, stream_context_create([
'http' => [
'protocol_version' => 1.1,
'header' => "User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
]
]));
$string1 = file_get_contents('https://www.worldometers.info/coronavirus/country/australia/', null, stream_context_create([
'http' => [
'protocol_version' => 1.1,
'header' => "User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"
]
]));
preg_match('/there have been (.*) confirmed cases of COVID-19 in Australia/', $string, $australia);
preg_match('/New South Wales<\/p>\s*<\/td>\s*<td class="numeric">\s*(.*)\s*<\/td>/', $string, $nsw);
preg_match('/Australian Capital Territory<\/p>\s*<\/td>\s*<td class="numeric">\s*(.*)\s*<\/td>/', $string, $act);
preg_match('/Northern Territory<\/p>\s*<\/td>\s*<td class="numeric">\s*(.*)\s*<\/td>/', $string, $nt);
preg_match('/Queensland<\/p>\s*<\/td>\s*<td class="numeric">\s*(.*)\s*<\/td>/', $string, $qld);
preg_match('/South Australia<\/p>\s*<\/td>\s*<td class="numeric">\s*(.*)\s*<\/td>/', $string, $sa);
preg_match('/Western Australia<\/p>\s*<\/td>\s*<td class="numeric">\s*(.*)\s*<\/td>/', $string, $wa);
preg_match('/Tasmania<\/p>\s*<\/td>\s*<td class="numeric">\s*(.*)\s*<\/td>/', $string, $tas);
preg_match('/Victoria<\/p>\s*<\/td>\s*<td class="numeric">\s*(.*)\s*<\/td>/', $string, $vic);
//string1 matches
// from https://stackoverflow.com/questions/11817494/ignore-whitespace-when-using-preg-match
//preg_match("/<td><strong>Title<\/strong><\/td>\s*<td>([a-zA-Z0-9 -_]+)<\/td>/", $html, $match)
preg_match('/Coronavirus Cases:<\/h1>\s*<div class="maincounter-number">\s*<span style="color:#aaa">(.*)\s*<\/span>/', $string1, $aus_cases);
preg_match('/Active Cases\s*<\/span>\s*<\/div>\s*<div class="panel-body" style="text-align:center; height:200px;">\s*<div class="panel_flip">\s*<div class="panel_front" style="width:100%;height:100%;">\s*<div class="number-table-main">(.*)\s*<\/div>/', $string1, $aus_active);
preg_match('/Recovered:<\/h1>\s*<div class="maincounter-number" style="color:#8ACA2B ">\s*<span>(.*)\s*<\/span>/', $string1, $aus_recover);
preg_match('/Deaths:<\/h1>\s*<div class="maincounter-number">\s*<span>\s*(.*)\s*<\/span>/', $string1, $aus_deaths);
/*var_dump($matches);*/
$res = preg_replace("/[^0-9]/", "", $australia[1]);
$nsw = preg_replace("/[^0-9]/", "", $nsw[1]);
$act = preg_replace("/[^0-9]/", "", $act[1]);
$nt = preg_replace("/[^0-9]/", "", $nt[1]);
$qld = preg_replace("/[^0-9]/", "", $qld[1]);
$sa = preg_replace("/[^0-9]/", "", $sa[1]);
$wa = preg_replace("/[^0-9]/", "", $wa[1]);
$tas = preg_replace("/[^0-9]/", "", $tas[1]);
$vic = preg_replace("/[^0-9]/", "", $vic[1]);
$aus_cases = preg_replace("/[^0-9]/", "", $aus_cases[1]);
$aus_active = preg_replace("/[^0-9]/", "", $aus_active[1]);
$aus_recover = preg_replace("/[^0-9]/", "", $aus_recover[1]);
$aus_deaths = preg_replace("/[^0-9]/", "", $aus_deaths[1]);
/*echo "Australia:".$matches[1];*/
echo "Australia:" .$res. " NSW:" .$nsw. " ACT:" .$act. " NT:" .$nt. " QLD:" .$qld. " SA:" .$sa. " WA:" .$wa. " TAS:" .$tas. " VIC:" .$vic. " AUST_CASES:" .$aus_cases. " AUST_ACTIVE:" .$aus_active. " AUST_DEATH:" .$aus_deaths. " AUST_RECOVER:" .$aus_recover;
?>