Coder Social home page Coder Social logo

troykelly / homeassistant-au-nsw-covid Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 0.0 116 KB

A group of sensors for Home Assistant that tracks New South Wales COVID-19 Data

License: GNU General Public License v3.0

Makefile 5.02% Python 94.98%
home-assistant covid-19 nsw-government nsw-health

homeassistant-au-nsw-covid's Introduction

NSW COVID-19 Case & Vacination Data for Home Assistant

GitHub Release GitHub Activity License CodeQL

hacs Project Maintenance BuyMeCoffee

Discord Community Forum

Covid cases and vaccination data sourced directly from New South Wales Health

NSW Covid Stats for Home Assistant

NSW Health Covid Sensors

Track daily changes in the New South Wales health districts.

Visibility in to cases, vaccinations and sources. Sourced directly from NSW Health.

Note

This is not affiliated with, nor approved by NSW Health.

Data is sourced by screen scraping - as NSW Health does not provide this information in any other format.

Installation

  1. Using HACS add the repository https://github.com/troykelly/homeassistant-au-nsw-covid.
  2. Add the integration
  3. Restart Home Assistant
  4. In Integrations add the NSW Covid integration
    • In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "NSW Covid"

Note

This is a screen scraper. That is not allowed in Home Assistant.

There just is no other way to get this data.

Missing Information

One number that would be great to have is "cases in community" especially in the last 24 hours.

NSW Health does not publish this number. In a press conference, it was stated that the number is too fluid.

If you have a source of extra information that you would like to see - create an issue!

Usage

This will create a series of sensors with current NSW Health Covid data.

Keep in mind - NSW Health manually updates their website, when they please. Aunty Gladys does her briefing at 11am, and sometimes the page is not updated until late in the afternoon.

Template Sensors

Some numbers are derived from the data. You can calculate these as a template sensor.

Local Cases (all of NSW)

A calculation of total cases - the sum of interstate and overseas

template:
   - sensor:
       - name: "Covid NSW Last 24 Hours State"
         unique_id: "covid_nsw_last_24_hours_state"
         icon: "mdi:virus"
         unit_of_measurement: "cases"
         state: >
           {% set total = states('sensor.covid_nsw_last_24_hours_total') | int %}
           {% set overseas = states('sensor.covid_nsw_last_24_hours_overseas_source') | int %}
           {% set interstate = states('sensor.covid_nsw_last_24_hours_interstate_source') | int %}
           {% set out_of_state = (overseas + interstate) %}
           {{ (total - out_of_state) }}
         attributes:
           attribution: >
             {{ state_attr('sensor.covid_nsw_last_24_hours_total', 'attribution') }}
           published: >
             {{ state_attr('sensor.covid_nsw_last_24_hours_total', 'published') }}

Vaccination Rate

Percentage of NSW population who've had second dose.

Assuming population is 6565651

template:
   - sensor:
       - name: "Covid NSW Fully Vaccinated"
         unique_id: "covid_nsw_state_vaccination_rate"
         icon: "mdi:needle"
         unit_of_measurement: "%"
         state: >
           {% set total_population = 6565651 %}
           {% set half_dose_total = (states('sensor.covid_nsw_doses') | int) / 2 %}
           {% set state_second_dose_vaccinated_total = half_dose_total / total_population %}
           {{ (state_second_dose_vaccinated_total * 100)|round(2, 'floor') }}
         attributes:
           attribution: >
             {{ state_attr('sensor.covid_nsw_doses', 'attribution') }}
           published: >
             {{ state_attr('sensor.covid_nsw_doses', 'gp_network_doses_updated') }}
           first_dose: >
             {% set total_population = 6565651 %}
             {% set first_dose_total = states('sensor.covid_nsw_total_first_dose_vaccine') | int %}
             {% set state_first_dose_vaccinated_total = first_dose_total / total_population %}
             {{ (state_first_dose_vaccinated_total * 100)|round(2, 'floor') }}
           first_dose_last_24_hours: >
             {% set total_population = 6565651 %}
             {% set first_dose_last24 = states('sensor.covid_nsw_last_24_hours_first_dose_vaccine') | int %}
             {% set state_first_dose_vaccinated_last24 = first_dose_last24 / total_population %}
             {{ (state_first_dose_vaccinated_last24 * 100)|round(6, 'floor') }}
           second_dose: >
             {% set total_population = 6565651 %}
             {% set second_dose_total = states('sensor.covid_nsw_total_second_dose_vaccine') | int %}
             {% set state_second_dose_vaccinated_total = second_dose_total / total_population %}
             {{ (state_second_dose_vaccinated_total * 100)|round(2, 'floor') }}
           second_dose_last_24_hours: >
             {% set total_population = 6565651 %}
             {% set second_dose_last24 = states('sensor.covid_nsw_last_24_hours_second_dose_vaccine') | int %}
             {% set state_second_dose_vaccinated_last24 = second_dose_last24 / total_population %}
             {{ (state_second_dose_vaccinated_last24 * 100)|round(6, 'floor') }}
           last_24_hours: >
             {% set total_population = 6565651 %}
             {% set second_dose_last24 = states('sensor.covid_nsw_last_24_hours_second_dose_vaccine') | int %}
             {% set state_second_dose_vaccinated_last24 = second_dose_last24 / total_population %}
             {{ (state_second_dose_vaccinated_last24 * 100)|round(6, 'floor') }}

Data Attribution

© State of New South Wales NSW Ministry of Health. For current information go to www.health.nsw.gov.au

Contributions are welcome!

If you want to contribute to this please read the Contribution guidelines


homeassistant-au-nsw-covid's People

Contributors

troykelly avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

homeassistant-au-nsw-covid's Issues

Historical Data?

Good morning,

Again I am loving this states you have made available. Is it possible to have any history with the data? Would be good for active cases etc to be able to use a graph and show previous days options.

I understand if this is not possible.

Track crashes on no server response

Log:

2021-08-02 03:56:43 DEBUG (MainThread) [nswcovid.protocol.statistics] track is checking for changes...
2021-08-02 03:56:43 DEBUG (SyncWorker_2) [nswcovid.protocol.protocol] {'url': 'https://www.health.nsw.gov.au:443/Infectious/covid-19/Pages/stats-nsw.aspx', 'params': None, 'data': None, 'headers': {}}
2021-08-02 03:56:43 ERROR (SyncWorker_2) [nswcovid.protocol.protocol] No response at all
2021-08-02 03:56:43 ERROR (SyncWorker_2) [nswcovid.protocol.protocol] ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
Traceback (most recent call last):
  File "/usr/local/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 445, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/usr/local/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 440, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/local/python/lib/python3.9/http/client.py", line 1347, in getresponse
    response.begin()
  File "/usr/local/python/lib/python3.9/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/local/python/lib/python3.9/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/python/lib/python3.9/socket.py", line 704, in readinto
    return self._sock.recv_into(b)
  File "/usr/local/python/lib/python3.9/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/local/python/lib/python3.9/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/python/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/local/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/usr/local/python/lib/python3.9/site-packages/urllib3/util/retry.py", line 532, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/local/python/lib/python3.9/site-packages/urllib3/packages/six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 445, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/usr/local/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 440, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/local/python/lib/python3.9/http/client.py", line 1347, in getresponse
    response.begin()
  File "/usr/local/python/lib/python3.9/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/local/python/lib/python3.9/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/python/lib/python3.9/socket.py", line 704, in readinto
    return self._sock.recv_into(b)
  File "/usr/local/python/lib/python3.9/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/local/python/lib/python3.9/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/python/lib/python3.9/site-packages/nswcovid/protocol/protocol.py", line 82, in __request
    response = self.__session.request(
  File "/usr/local/python/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/python/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/python/lib/python3.9/site-packages/requests/adapters.py", line 498, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

Version bump library

For additional debugging
Can't understand why the update event is not being called

Suggestion for source of info

I use covidlive.com.au for screen scraping. Its semi official and gets info from various sources which is double checked
Have asked the guy behind it if he could provide an API for us to use, but never got a response back

Data does not update as expected

Hi Troy - Whilst the set-up has the update switch in the "On" position the data never updates. Below is a paste of an error in the HA logs file. Any ideas what I'm doing wrong? I tried deleting and reinstalling.

Platform RPi - latest versions of H.A

Logger: nswcovid.protocol.statistics
Source: /usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py:145
First occurred: 9:21:39 AM (6 occurrences)
Last logged: 9:21:39 AM

interstate_active could not find selector #ContentHtml1Zone2 > div:nth-child(1) > div > div:nth-child(4) > ul > li:nth-child(3) > span
overseas_active could not find selector #ContentHtml1Zone2 > div:nth-child(1) > div > div:nth-child(4) > ul > li:nth-child(3) > span
hospitalisations_admitted could not find selector #ContentHtml1Zone2 > div:nth-child(1) > div > div:nth-child(7) > ul > li:nth-child(1) > span
hospitalisations_icu could not find selector #ContentHtml1Zone2 > div:nth-child(1) > div > div:nth-child(7) > ul > li:nth-child(2) > span
hospitalisations_ventilation could not find selector #ContentHtml1Zone2 > div:nth-child(1) > div > div:nth-child(7) > ul > li:nth-child(3) > span

Errors in the logs referring to 'NoneType'

Hi,

Firstly, thanks for making this integration. Great work.
I thought i would share some error details i'm seein my log today. In case it's something that you can fix.

2021-08-30 11:02:47 ERROR (MainThread) [nswcovid.protocol.statistics] argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 185, in details
value = pyquery(list_dict_data, statistic.json_search)
File "/usr/local/lib/python3.9/site-packages/jello/lib.py", line 396, in pyquery
_θ_output = eval(compile(_θ_last, '', mode='eval'))
File "", line 1, in
File "", line 1, in
TypeError: argument of type 'NoneType' is not iterable

Cheers
Nick

ValueError on Startup

Something in the dataset must have changed, looks like its trying to convert unicode(?) to an integer

2021-08-11 11:27:53 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry NSW Covid for nswcovid
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/config/custom_components/nswcovid/__init__.py", line 36, in async_setup_entry
    if not await hass.data[DOMAIN][entry.entry_id].refresh():
  File "/usr/local/lib/python3.9/site-packages/nswcovid/API/main.py", line 26, in refresh
    await self.__statistics_handler.build()
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 87, in build
    await task
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 345, in refresh
    await self.__handler.details(self.__id)
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 213, in details
    value = int(value.replace(",", ""))
ValueError: invalid literal for int() with base 10: '\u200b670314'

Page scrape failing with unicode character

2021-08-11 01:04:53 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry NSW Covid for nswcovid
Traceback (most recent call last):
  File "/usr/local/python/lib/python3.9/site-packages/homeassistant/config_entries.py", line 293, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/tmp/config/custom_components/nswcovid/__init__.py", line 36, in async_setup_entry
    if not await hass.data[DOMAIN][entry.entry_id].refresh():
  File "/usr/local/python/lib/python3.9/site-packages/nswcovid/API/main.py", line 26, in refresh
    await self.__statistics_handler.build()
  File "/usr/local/python/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 87, in build
    await task
  File "/usr/local/python/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 345, in refresh
    await self.__handler.details(self.__id)
  File "/usr/local/python/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 213, in details
    value = int(value.replace(",", ""))
ValueError: invalid literal for int() with base 10: '\u200b670314'

Incorrect Data Source for vaccinations

Hi,
The website used to obtain vaccination first dose, second dose, and total doses is incorrect. The numbers do not align to other NSW Health websites which provide the stats on doses.

Error on v6

Just updated… getting this error.

When I search for it in Integrations (after updating in HACS). Config flow could not be loaded

And then in my notifications I get the following:

The following integrations and platforms could not be set up:
nswcovid==0.0.6

<script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>

Event updates passing incorrect data

Log:

2021-08-02 11:37:17 DEBUG (MainThread) [nswcovid.protocol.statistics] track is checking for changes...
2021-08-02 11:37:17 DEBUG (SyncWorker_11) [nswcovid.protocol.protocol] {'url': 'https://www.health.nsw.gov.au:443/Infectious/covid-19/Pages/stats-nsw.aspx', 'params': None, 'data': None, 'headers': {}}
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic published: 2021-08-01 20:00:00+10:05
2021-08-02 11:37:20 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic locally_active: 3038
2021-08-02 11:37:20 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic interstate_active: 0
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic overseas_active: 52
2021-08-02 11:37:20 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic last_24_hours_known: 105
2021-08-02 11:37:20 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic last_24_hours_unknown: 102
2021-08-02 11:37:20 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic last_24_hours_interstate: 0
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic last_24_hours_overseas: 2
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic last_24_hours_total: 209
2021-08-02 11:37:20 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic last_24_hours_tests: 117009
2021-08-02 11:37:20 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic this_week_known: 762
2021-08-02 11:37:20 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic this_week_unknown: 586
2021-08-02 11:37:20 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic this_week_interstate: 0
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic this_week_overseas: 10
2021-08-02 11:37:20 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic this_week_total: 1358
2021-08-02 11:37:20 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic this_week_tests: 578584
2021-08-02 11:37:20 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic last_week_known: 629
2021-08-02 11:37:20 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:20 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic last_week_unknown: 290
2021-08-02 11:37:20 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:21 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic last_week_interstate: 0
2021-08-02 11:37:21 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic last_week_overseas: 14
2021-08-02 11:37:21 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:21 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic last_week_total: 933
2021-08-02 11:37:21 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:21 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic last_week_tests: 625739
2021-08-02 11:37:21 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:21 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic this_year_known: 4191
2021-08-02 11:37:21 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:21 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic this_year_unknown: 1535
2021-08-02 11:37:21 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:21 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic this_year_interstate: 91
2021-08-02 11:37:21 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic this_year_overseas: 3354
2021-08-02 11:37:21 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:21 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic this_year_total: 9171
2021-08-02 11:37:21 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:21 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic this_year_tests: 9297828
2021-08-02 11:37:21 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:21 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic last_24_hours_first_dose: 5398
2021-08-02 11:37:21 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:21 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic last_24_hours_second_dose: 9099
2021-08-02 11:37:21 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:21 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic last_24_hours_total_dose: 14497
2021-08-02 11:37:21 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:21 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic total_first_dose: 939582
2021-08-02 11:37:21 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:21 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic total_second_dose: 570124
2021-08-02 11:37:21 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh
2021-08-02 11:37:21 DEBUG (MainThread) [nswcovid.protocol.statistics] Updating statistic total_total_dose: 1509706
2021-08-02 11:37:21 ERROR (MainThread) [nswcovid.protocol.statistics] device_event_handler() got an unexpected keyword argument 'statistic_id'
  File "/usr/local/lib/python3.9/site-packages/nswcovid/protocol/statistics.py", line 579, in refresh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.