Tapo Smart Hub (H100) connected but no visibility of devices paired with it

Add support for Tapo Smart Hub connected devices such as motion sensors (T100) which don't have own IP addresses.
I'd like to use Tapo Motion Sensors like any other HA supported motion sensors.

Support

I have captured some packets, which seems like json with base64 encoded binary data but I don't know how to decode it. Any tips? I can help with reverse engineering as I have H100 with various sensors on it.

OK probably what I've catched was only get status requests from home assistant, meh. I see that everything is encrypted. Seems like a PIA to reverse engineer.

On a RTL-SDR in EU:

Also have hub with few sensors connected willing to help if I could. @seba1337 Do you also have a Zigbee gateway around? tried connecting these sensors to that, instead of H100? I am worried about the future of these devices and potential Matter support in the Future.

I don't think it's ZigBee compatible.
Anyway I can't find any keyword that I could send to the H100 hub that would get me the connected devices or anything like that. The only thing that works is

method: get_device_info

Unfortunately without having the hub phisically, I can't develop a proper integration

I have it. How would you approach the problem?

Unfortunately without having the hub phisically, I can't develop a proper integration

I am willing to donate the cost of one if you think there is a chance you might be able to get it working. The hub and its accessories work very well and are great value, I would love to be able to integrate them into my HA setup.

I'd happily chip in financially as well. Would love to have integration for S220 switches.

I am willing to donate, if someone can start working on the integration of Tapo H100, Tapo T315, Tapo S200B

I used your plugp100 code to run the state.get_unmapped_state() method on the hub and it returned the following:
{
   "device_id":"802DD58004D46C425A596926B180734E20B87756",
   "fw_ver":"1.2.3 Build 221012 Rel.103821",
   "hw_ver":"1.0",
   "type":"SMART.TAPOHUB",
   "model":"H100",
   "mac":"29-AE-5A-BB-21-0D",
   "hw_id":"F9GG7B5B3B67E8F51EBF6E2BBDE2977B",
   "fw_id":"00000000000000000000000000000000",
   "oem_id":"941591747A8D77AA74916014FEC3AD90",
   "overheated":false,
   "ip":"<IP_ADDRESS>",
   "time_diff":0,
   "ssid":"RsGjw7kvbk1lc2g=",
   "rssi":-58,
   "signal_level":2,
   "in_alarm":false,
   "in_alarm_source":"",
   "latitude":000000,
   "longitude":00000,
   "lang":"en_US",
   "avatar":"hub",
   "region":"Europe/Somwehere",
   "specs":"UK",
   "nickname":"VGFwyGDdWI=",
   "has_set_location_info":true
}

I assume it should be possible to create new methods to control the hub and subdevice functionality but I don't really know how, I tried adding a method to set the "in_alarm" parameter to true which i expected to activate the ringer but that didnt seem to happen.
Note: I have replaced most of the potentially identifying details

Any movement on this request?  Is it possible?  I'd love to see the H100 hub integrated with HA.

Well I think the Tapo team is working on the alexa integration directly, Yesterday I saw a device in my alexa devices section as tapo button, it gives 4 events, tap, double tap, rotate clockwise and rotate counter clockwise.
I made some alexa routines and it worked for several hours, now again it's not working either some network issue or maybe they are still working on this., So probably we might not need H100 integration directly.

I've always had the H100 attached devices in Alexa. Both of my motion sensors are there and I've been using them in Alexa routines since I got them.  However still no way of having them in HA :(
Regards
Gav

From: Akshay Bengani @.>
Sent: Monday, June 5, 2023 2:52:41 AM
To: petretiandrea/home-assistant-tapo-p100 @.>
Cc: monkga1 @.>; Author @.>
Subject: Re: [petretiandrea/home-assistant-tapo-p100] Tapo Smart Hub (H100) connected but no visibility of devices paired with it (Issue #354)
[Screenshot_20230605-071752]https://user-images.githubusercontent.com/22613992/243233662-f94b96a3-f1ac-4bdd-ba5c-81456048640b.png
[Screenshot_20230605-071711]https://user-images.githubusercontent.com/22613992/243233665-6e27424d-134d-4fc3-a9fe-dcb9100202cd.png
Well I think the Tapo team is working on the alexa integration directly, Yesterday I saw a device in my alexa devices section as tapo button, it gives 4 events, tap, double tap, rotate clockwise and rotate counter clockwise.
I made some alexa routines and it worked for several hours, now again it's not working either some network issue or maybe they are still working on this., So probably we might not need H100 integration directly.
—
Reply to this email directly, view it on GitHubhttps://github.com/petretiandrea/home-assistant-tapo-p100/issues/354#issuecomment-1575921878, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5DS2A7GG57ASKNHDWDOFGLXJU3WTANCNFSM6AAAAAAUGYPP7Q.
You are receiving this because you authored the thread.Message ID: @.***>

I'm also willing to donate to have HA integration for H100, to control sensors like T110

I will add support for hub, I'm working on it

I will add support for hub, I'm working on it

I have a hub and some accessories, I have some basic python knowledge so if I can help I will

If it helps, this repo could probably be easily unpicked to give the required functionality:
https://github.com/mihai-dinculescu/tapo
It breaks down all the api calls neccesary for hub comms and works on the same principle of ip/user/password

+1 for development of H100 support and peripherals

How do you do that?

After adding the TP-Link Tapo integration, the only device that shows is the H100 hub with controls (siren) and diagnostics (overheat and signal level)  Somebody will figure this out to show the devices linked to the hub, but it's way above my pay grade.  Would be nice though as the sensors are dirt cheap and reliable.

I've been playing around and managed to get a list of child devices that are connected to the hub. I have very limited programming skills but thought I'd share what I found.
First change was to add get_children to tapo_hub_coordinator
from datetime import timedelta

from homeassistant.core import HomeAssistant
from plugp100.api.hub.hub_device import HubDevice
from plugp100.common.functional.either import Either
from plugp100.responses.device_state import DeviceInfo, HubDeviceState
from plugp100.responses.child_device_list import ChildDeviceList

from custom_components.tapo.coordinators import SensorState, TapoCoordinator

class TapoHubCoordinator(TapoCoordinator[HubDeviceState]):
    def __init__(
        self,
        hass: HomeAssistant,
        device: HubDevice,
        polling_interval: timedelta,
    ):
        super().__init__(hass, device, polling_interval)

    def get_sensor_state(self) -> SensorState:
        return SensorState(self.data.info, None, None)

    def get_device_info(self) -> DeviceInfo:
        return self.data.info

    async def _get_state_from_device(self) -> Either[HubDeviceState, Exception]:
        return await self.device.get_state()

    async def get_children(self) -> Either[ChildDeviceList, Exception]:
        return await self._api.get_child_device_list()

Then in tapo_hub -> initialize_hub I logged the result of self.hub.get_children():
Results have been scrubbed to remove any unique identifiers...
ChildDeviceList(child_device_list=[
{'parent_device_id': 'scrubbed', 'hw_ver': '1.0', 'fw_ver': '1.5.0 Build 230105 Rel.180832', 'device_id': 'scrubbed', 'mac': 'scrubbed', 'type': 'SMART.TAPOSENSOR', 'model': 'T310', 'hw_id': 'scrubbed', 'oem_id': 'scrubbed', 'specs': 'US', 'category': 'subg.trigger.temp-hmdt-sensor', 'bind_count': 1, 'status_follow_edge': False, 'status': 'online', 'lastOnboardingTimestamp':<PHONE_NUMBER>, 'rssi': -71, 'signal_level': 3, 'jamming_rssi': -117, 'jamming_signal_level': 1, 'at_low_battery': False, 'temp_unit': 'celsius', 'current_temp': 12.9, 'current_humidity': 78, 'current_temp_exception': 0, 'current_humidity_exception': 18, 'nickname': 'scrubbed', 'avatar': 'sensor_t310', 'report_interval': 16, 'region': 'Australia/Adelaide'},
{'parent_device_id': 'scrubbed', 'hw_ver': '1.0', 'fw_ver': '1.10.0 Build 220728 Rel.155144', 'device_id': 'scrubbed', 'mac': 'scrubbed', 'type': 'SMART.TAPOSENSOR', 'model': 'S200B', 'hw_id': 'scrubbed', 'oem_id': 'scrubbed', 'specs': 'US', 'category': 'subg.trigger.button', 'bind_count': 1, 'status_follow_edge': False, 'status': 'online', 'lastOnboardingTimestamp':<PHONE_NUMBER>, 'rssi': -72, 'signal_level': 3, 'jamming_rssi': -113, 'jamming_signal_level': 1, 'at_low_battery': False, 'nickname': 'scrubbed', 'avatar': '', 'report_interval': 16, 'region': 'Australia/Adelaide'},
{'parent_device_id': 'scrubbed', 'hw_ver': '1.0', 'fw_ver': '1.10.0 Build 220728 Rel.155144', 'device_id': 'scrubbed', 'mac': 'scrubbed', 'type': 'SMART.TAPOSENSOR', 'model': 'S200B', 'hw_id': 'scrubbed', 'oem_id': 'scrubbed', 'specs': 'US', 'category': 'subg.trigger.button', 'bind_count': 1, 'status_follow_edge': False, 'status': 'online', 'lastOnboardingTimestamp':<PHONE_NUMBER>, 'rssi': -66, 'signal_level': 3, 'jamming_rssi': -115, 'jamming_signal_level': 1, 'at_low_battery': False, 'nickname': 'scrubbed', 'avatar': 'button', 'report_interval': 16, 'region': 'Australia/Adelaide'},
{'parent_device_id': 'scrubbed', 'hw_ver': '1.0', 'fw_ver': '1.8.0 Build 220728 Rel.160245', 'device_id': 'scrubbed', 'mac': 'scrubbed', 'type': 'SMART.TAPOSENSOR', 'model': 'T110', 'hw_id': 'scrubbed', 'oem_id': 'scrubbed', 'specs': 'US', 'category': 'subg.trigger.contact-sensor', 'bind_count': 1, 'status_follow_edge': False, 'status': 'online', 'lastOnboardingTimestamp':<PHONE_NUMBER>, 'rssi': -66, 'signal_level': 3, 'jamming_rssi': -115, 'jamming_signal_level': 1, 'at_low_battery': False, 'open': False, 'nickname': 'scrubbed', 'avatar': 'sensor_t110', 'report_interval': 16, 'region': 'Australia/Adelaide'},
{'parent_device_id': 'scrubbed', 'hw_ver': '1.0', 'fw_ver': '1.8.0 Build 220728 Rel.160245', 'device_id': 'scrubbed', 'mac': 'scrubbed', 'type': 'SMART.TAPOSENSOR', 'model': 'T110', 'hw_id': 'scrubbed', 'oem_id': 'scrubbed', 'specs': 'US', 'category': 'subg.trigger.contact-sensor', 'bind_count': 1, 'status_follow_edge': False, 'status': 'online', 'lastOnboardingTimestamp':<PHONE_NUMBER>, 'rssi': -87, 'signal_level': 1, 'jamming_rssi': -111, 'jamming_signal_level': 1, 'at_low_battery': False, 'open': False, 'nickname': 'scrubbed', 'avatar': 'sensor_t110', 'report_interval': 16, 'region': 'Australia/Adelaide'}
], start_index=0, sum=5)

Hope this makes sense, and helps.

Thanks for support I have already added support to children in my plugp100 library. The last step is to integrate to homeassistant. I'm working on it

It would be great if this could give access to the T310 temperature & humidity sensor data, which hang off the hub ......

I'm working on It ;)

Great that you are working on it, we bought the hub, doorbell and motion sensors thinking they would work straight away in HA, as we have light strips and a camera that are fully working.
Kinda waste of money right now, fingers crossed you can get this working.

I was able to connect the HUB but I cannot access the T110 that is connected to it.
Is it supposed to work or is it still in development?

Is it supposed to work or is it still in development?

Still in development.  I also have the hub and one door sensor and can only ring the hub's chime; can't see the sensor.  I'm glad I didn't make big investment in these because we may never see it fully implemented.  I'm sure it's a lot of work and there isn't a big demand.  They work fine with the cloud and are cheap.  In lieu of these, I'm using Z-Wave and they work flawlessly with HA.

Same here, bought the H100 and T100 and thought it would work for HA, hoping for development

I'm working on it, but require time. While for sensors an integration is working in progress, for button it's technically complex and infeasible. Let me explain, the integration can poll sensors to get proper data and that's ok, but for button the approach is inverse. When you click a button, it's the button which send a "message" to hub and the hub execute a cloud automation. Actually the hub doesn't expose a local "stream" of events, e.g. button pressed, double press, etcc..., so it's not possible to get event in real time and integration to home assistant. This is the same reason why if the hub is offline the automation does not work, cause rely on cloud instead of locally. An improper solution would be to poll high frequency to the hub to capture events, but this generates a lot of unnecessary network traffic

I'm working on it, but require time. While for sensors an integration is working in progress, for button it's technically complex and infeasible. Let me explain, the integration can poll sensors to get proper data and that's ok, but for button the approach is inverse. When you click a button, it's the button which send a "message" to hub and the hub execute a cloud automation. Actually the hub doesn't expose a local "stream" of events, e.g. button pressed, double press, etcc..., so it's not possible to get event in real time and integration to home assistant. This is the same reason why if the hub is offline the automation does not work, cause rely on cloud instead of locally. An improper solution would be to poll high frequency to the hub to capture events, but this generates a lot of unnecessary network traffic

thanks for the explanation!
it would be already amazing, if sensors would work, otherwise my motion sensor is lies around

Well the motion sensor work for me...
metadata:
  name: Turn on Kitchen Lights on entering the kitchen .
  description: Turn on Kitchen Lights on entering the kitchen

automations:
  starters:
    - device: Kitchen Sensor - Kitchen
      type: device.state.MotionDetection
      state: motionDetectionEventInProgress
      is: true

  condition:
    type: time.between
    before: sunrise+30min
    after: sunset-60min
    weekdays:
      - MON
      - TUE
      - WED
      - THU
      - FRI
      - SAT
      - SUN

  actions:
    - type: device.command.OnOff
      on: true
      devices: Kitchen Light - Kitchen

i only got 3 entities from H100 but not from the sensor T100 that is connected to the hubAm 06.09.2023 07:20 schrieb TheTomahawk @.***>:
Well the motion sensor work for me...
metadata:
name: Turn on Kitchen Lights on entering the kitchen .
description: Turn on Kitchen Lights on entering the kitchen
automations:
starters:
- device: Kitchen Sensor - Kitchen
type: device.state.MotionDetection
state: motionDetectionEventInProgress
is: true
condition:
type: time.between
before: sunrise+30min
after: sunset-60min
weekdays:
- MON
- TUE
- WED
- THU
- FRI
- SAT
- SUN
actions:
- type: device.command.OnOff
on: true
devices: Kitchen Light - Kitchen
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

I'm working on it, but require time. While for sensors an integration is working in progress, for button it's technically complex and infeasible. Let me explain, the integration can poll sensors to get proper data and that's ok, but for button the approach is inverse. When you click a button, it's the button which send a "message" to hub and the hub execute a cloud automation. Actually the hub doesn't expose a local "stream" of events, e.g. button pressed, double press, etcc..., so it's not possible to get event in real time and integration to home assistant. This is the same reason why if the hub is offline the automation does not work, cause rely on cloud instead of locally. An improper solution would be to poll high frequency to the hub to capture events, but this generates a lot of unnecessary network traffic

Yep I get events are a pain.   I know it is Rust and I haven't actually looked at it but wonder if https://github.com/mihai-dinculescu/tapo/blob/main/src/api/hub_handler.rs might help at all?   Says it took inspiration from your work so could have a similar logical base at some level?

I'm working on it, but require time. While for sensors an integration is working in progress, for button it's technically complex and infeasible. Let me explain, the integration can poll sensors to get proper data and that's ok, but for button the approach is inverse. When you click a button, it's the button which send a "message" to hub and the hub execute a cloud automation. Actually the hub doesn't expose a local "stream" of events, e.g. button pressed, double press, etcc..., so it's not possible to get event in real time and integration to home assistant. This is the same reason why if the hub is offline the automation does not work, cause rely on cloud instead of locally. An improper solution would be to poll high frequency to the hub to capture events, but this generates a lot of unnecessary network traffic

Yep I get events are a pain. I know it is Rust and I haven't actually looked at it but wonder if https://github.com/mihai-dinculescu/tapo/blob/main/src/api/hub_handler.rs might help at all? Says it took inspiration from your work so could have a similar logical base at some level?

My implementation is similar, but tapo doesn't offer a stream of events for button "clicks". The only way is polling, but I think is not a good way cause generate a lot of cpu and network waste

Ah yeah just dug a little into the code and I can see it grabs trigger logs
https://github.com/mihai-dinculescu/tapo/blob/main/src/api/child_devices/s200b_handler.rs
Can't see that working for a button.   Shame.

Working in progress 💪

Ah yeah just dug a little into the code and I can see it grabs trigger logs https://github.com/mihai-dinculescu/tapo/blob/main/src/api/child_devices/s200b_handler.rs
Can't see that working for a button. Shame but totally understand.

Yes, but you get event logs when you ask for them by calling the proper method. An event stream is a push approach to be notified when something change, like button pressure

Hi!
That looks very great!
I'm using those devices already long time just for tapo automation. I did started using Home assistant and can't wait for that integration!
Can you let us know, how long you thing it will take to give us a alpha or beta version for those sensors TP310??
Thank you  very much,
Henrik

Hi,
I have managed to pair and integrate the Tapo Hub H100 with Home assistant. The siren works fine. However I am not able to add the Tapo T100 motion sensors since they do not have dedicated ip addresses. Could you please help me integrate the Tapo T100 motion sensors with home assistant?

Ah yeah just dug a little into the code and I can see it grabs trigger logs https://github.com/mihai-dinculescu/tapo/blob/main/src/api/child_devices/s200b_handler.rs
Can't see that working for a button. Shame but totally understand.

Yes, but you get event logs when you ask for them by calling the proper method. An event stream is a push approach to be notified when something change, like button pressure

Ciao Andrea,
Would it be possible to integrate just a portion of the child-devices for the hub H100 as a custom plugin, In my case as well I have a hub h100 and a couple of T100 sensors i guess for the other people above who mentioned as well who have a similar setup needed for detection/monitoring in this case the trigger (event triggers) could be done using the api call that makes an HTTP GET request to the Tapo API endpoint correct?

Release 2.9.0 is out now! It supports hub's devices, actually I've tested physically with T31 and S200, but I've extended support to other devices like smart door and motion sensor. Feel free to open new issues

Hi,
thanks for the big update regarding the HUB. I have S210 and S220 light switches paired to the Hub. Atfter 2.9.0 all switches are listed as devices but do't have any controls. Are there plans to expand the Hub support to this devices as well?

Hi,
thanks for your work. I can finally see temp/hum. sensors and I see there exist door sensors. But I don't see state of door sensors. When I look to log, I see some errors. I run HA in in Docker.
2023-09-21 10:17:18 2023-09-21 10:17:18.312 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entities for domain binary_sensor with platform tapo 2023-09-21 10:17:18 Traceback (most recent call last): 2023-09-21 10:17:18   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities 2023-09-21 10:17:18     await asyncio.gather(*tasks) 2023-09-21 10:17:18   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 590, in _async_add_entity 2023-09-21 10:17:18     if entity.unique_id is not None: 2023-09-21 10:17:18        ^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18   File "/config/custom_components/tapo/hub/binary_sensor.py", line 38, in unique_id 2023-09-21 10:17:18     return super().unique_id + "_" + self._attr_name.replace(" ", "_") 2023-09-21 10:17:18                                      ^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18 AttributeError: 'NoneType' object has no attribute 'replace' 2023-09-21 10:17:18 2023-09-21 10:17:18.333 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up tapo platform for binary_sensor 2023-09-21 10:17:18 Traceback (most recent call last): 2023-09-21 10:17:18   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 370, in _async_setup_platform 2023-09-21 10:17:18     await asyncio.gather(*pending) 2023-09-21 10:17:18   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities 2023-09-21 10:17:18     await asyncio.gather(*tasks) 2023-09-21 10:17:18   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 590, in _async_add_entity 2023-09-21 10:17:18     if entity.unique_id is not None: 2023-09-21 10:17:18        ^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18   File "/config/custom_components/tapo/hub/binary_sensor.py", line 38, in unique_id 2023-09-21 10:17:18     return super().unique_id + "_" + self._attr_name.replace(" ", "_") 2023-09-21 10:17:18                                      ^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18 AttributeError: 'NoneType' object has no attribute 'replace' 2023-09-21 10:17:18 2023-09-21 10:17:18.366 ERROR (MainThread) [custom_components.tapo.coordinators] Error fetching tapo data: Error communication with API: Server disconnected 2023-09-21 10:17:18 2023-09-21 10:17:18.376 ERROR (MainThread) [custom_components.tapo.coordinators] Error fetching tapo data: Error communication with API: Server disconnected 2023-09-21 10:17:18 2023-09-21 10:17:18.840 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entities for domain binary_sensor with platform tapo 2023-09-21 10:17:18 Traceback (most recent call last): 2023-09-21 10:17:18   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities 2023-09-21 10:17:18     await asyncio.gather(*tasks) 2023-09-21 10:17:18   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 590, in _async_add_entity 2023-09-21 10:17:18     if entity.unique_id is not None: 2023-09-21 10:17:18        ^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18   File "/config/custom_components/tapo/hub/binary_sensor.py", line 38, in unique_id 2023-09-21 10:17:18     return super().unique_id + "_" + self._attr_name.replace(" ", "_") 2023-09-21 10:17:18                                      ^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18 AttributeError: 'NoneType' object has no attribute 'replace' 2023-09-21 10:17:18 2023-09-21 10:17:18.955 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entities for domain binary_sensor with platform tapo 2023-09-21 10:17:18 Traceback (most recent call last): 2023-09-21 10:17:18   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities 2023-09-21 10:17:18     await asyncio.gather(*tasks) 2023-09-21 10:17:18   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 590, in _async_add_entity 2023-09-21 10:17:18     if entity.unique_id is not None: 2023-09-21 10:17:18        ^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18   File "/config/custom_components/tapo/hub/binary_sensor.py", line 38, in unique_id 2023-09-21 10:17:18     return super().unique_id + "_" + self._attr_name.replace(" ", "_") 2023-09-21 10:17:18                                      ^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18 AttributeError: 'NoneType' object has no attribute 'replace' 2023-09-21 10:17:18 2023-09-21 10:17:18.970 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entities for domain binary_sensor with platform tapo 2023-09-21 10:17:18 Traceback (most recent call last): 2023-09-21 10:17:18   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities 2023-09-21 10:17:18     await asyncio.gather(*tasks) 2023-09-21 10:17:18   File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 590, in _async_add_entity 2023-09-21 10:17:18     if entity.unique_id is not None: 2023-09-21 10:17:18        ^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18   File "/config/custom_components/tapo/hub/binary_sensor.py", line 38, in unique_id 2023-09-21 10:17:18     return super().unique_id + "_" + self._attr_name.replace(" ", "_") 2023-09-21 10:17:18                                      ^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18 AttributeError: 'NoneType' object has no attribute 'replace' 2023-09-21 10:27:48 2023-09-21 10:27:48.505 ERROR (MainThread) [custom_components.tapo.coordinators] Error fetching tapo data: Unexpected exception: Clock moved backwards. Refusing to generate ID.

@petretiandrea a massive thank you to you, my temperature and humidity sensors are working perfectly.
Thank you my friend for all your hard work!
Enjoy the coffees

Thank you for working on this.,  I see it's working for many.  I only have a contact closure on a door.  With the update, I see it as a device, but the only 2 entities it has are the battery and report interval.  I don't know when it opens and closes.  Am I doing something wrong?  Again a big thank you and I'm sure this will only get better.

Same with me.
On Thu, Sep 21, 2023, 19:30 NJBILLT @.***> wrote:

Thank you for working on this., I see it's working for many. I only have a
contact closure on a door. With the update, I see it as a device, but the
only 2 entities it has are the battery and report interval. I don't know
when it opens and closes. Am I doing something wrong? Again a big thank you
and I'm sure this will only get better.
—
Reply to this email directly, view it on GitHub
https://github.com/petretiandrea/home-assistant-tapo-p100/issues/354#issuecomment-1730012527,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABKJ3HZHCWH5KCDXJZUAI3X3R2UTANCNFSM6AAAAAAUGYPP7Q
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***
com>

Thank you for working on this., I see it's working for many. I only have a contact closure on a door. With the update, I see it as a device, but the only 2 entities it has are the battery and report interval. I don't know when it opens and closes. Am I doing something wrong? Again a big thank you and I'm sure this will only get better.

Same with me. The state of device ia missing.

S210 and S220

Actually are not supported, please open a new issue where you request support these two devices

Hi, thanks for your work. I can finally see temp/hum. sensors and I see there exist door sensors. But I don't see state of door sensors. When I look to log, I see some errors. I run HA in in Docker.
2023-09-21 10:17:18 2023-09-21 10:17:18.312 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entities for domain binary_sensor with platform tapo 2023-09-21 10:17:18 Traceback (most recent call last): 2023-09-21 10:17:18 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities 2023-09-21 10:17:18 await asyncio.gather(*tasks) 2023-09-21 10:17:18 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 590, in _async_add_entity 2023-09-21 10:17:18 if entity.unique_id is not None: 2023-09-21 10:17:18 ^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18 File "/config/custom_components/tapo/hub/binary_sensor.py", line 38, in unique_id 2023-09-21 10:17:18 return super().unique_id + "_" + self._attr_name.replace(" ", "_") 2023-09-21 10:17:18 ^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18 AttributeError: 'NoneType' object has no attribute 'replace' 2023-09-21 10:17:18 2023-09-21 10:17:18.333 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up tapo platform for binary_sensor 2023-09-21 10:17:18 Traceback (most recent call last): 2023-09-21 10:17:18 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 370, in _async_setup_platform 2023-09-21 10:17:18 await asyncio.gather(*pending) 2023-09-21 10:17:18 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities 2023-09-21 10:17:18 await asyncio.gather(*tasks) 2023-09-21 10:17:18 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 590, in _async_add_entity 2023-09-21 10:17:18 if entity.unique_id is not None: 2023-09-21 10:17:18 ^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18 File "/config/custom_components/tapo/hub/binary_sensor.py", line 38, in unique_id 2023-09-21 10:17:18 return super().unique_id + "_" + self._attr_name.replace(" ", "_") 2023-09-21 10:17:18 ^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18 AttributeError: 'NoneType' object has no attribute 'replace' 2023-09-21 10:17:18 2023-09-21 10:17:18.366 ERROR (MainThread) [custom_components.tapo.coordinators] Error fetching tapo data: Error communication with API: Server disconnected 2023-09-21 10:17:18 2023-09-21 10:17:18.376 ERROR (MainThread) [custom_components.tapo.coordinators] Error fetching tapo data: Error communication with API: Server disconnected 2023-09-21 10:17:18 2023-09-21 10:17:18.840 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entities for domain binary_sensor with platform tapo 2023-09-21 10:17:18 Traceback (most recent call last): 2023-09-21 10:17:18 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities 2023-09-21 10:17:18 await asyncio.gather(*tasks) 2023-09-21 10:17:18 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 590, in _async_add_entity 2023-09-21 10:17:18 if entity.unique_id is not None: 2023-09-21 10:17:18 ^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18 File "/config/custom_components/tapo/hub/binary_sensor.py", line 38, in unique_id 2023-09-21 10:17:18 return super().unique_id + "_" + self._attr_name.replace(" ", "_") 2023-09-21 10:17:18 ^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18 AttributeError: 'NoneType' object has no attribute 'replace' 2023-09-21 10:17:18 2023-09-21 10:17:18.955 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entities for domain binary_sensor with platform tapo 2023-09-21 10:17:18 Traceback (most recent call last): 2023-09-21 10:17:18 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities 2023-09-21 10:17:18 await asyncio.gather(*tasks) 2023-09-21 10:17:18 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 590, in _async_add_entity 2023-09-21 10:17:18 if entity.unique_id is not None: 2023-09-21 10:17:18 ^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18 File "/config/custom_components/tapo/hub/binary_sensor.py", line 38, in unique_id 2023-09-21 10:17:18 return super().unique_id + "_" + self._attr_name.replace(" ", "_") 2023-09-21 10:17:18 ^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18 AttributeError: 'NoneType' object has no attribute 'replace' 2023-09-21 10:17:18 2023-09-21 10:17:18.970 ERROR (MainThread) [homeassistant.components.binary_sensor] Error adding entities for domain binary_sensor with platform tapo 2023-09-21 10:17:18 Traceback (most recent call last): 2023-09-21 10:17:18 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities 2023-09-21 10:17:18 await asyncio.gather(*tasks) 2023-09-21 10:17:18 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 590, in _async_add_entity 2023-09-21 10:17:18 if entity.unique_id is not None: 2023-09-21 10:17:18 ^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18 File "/config/custom_components/tapo/hub/binary_sensor.py", line 38, in unique_id 2023-09-21 10:17:18 return super().unique_id + "_" + self._attr_name.replace(" ", "_") 2023-09-21 10:17:18 ^^^^^^^^^^^^^^^^^^^^^^^ 2023-09-21 10:17:18 AttributeError: 'NoneType' object has no attribute 'replace' 2023-09-21 10:27:48 2023-09-21 10:27:48.505 ERROR (MainThread) [custom_components.tapo.coordinators] Error fetching tapo data: Unexpected exception: Clock moved backwards. Refusing to generate ID.

Please open a specific issue

I will close this issue, cause some devices are actually integrated with HA. Each specific issue related to a HUB child device must be reported to a new issue

Thank you for working on this., I see it's working for many. I only have a contact closure on a door. With the update, I see it as a device, but the only 2 entities it has are the battery and report interval. I don't know when it opens and closes. Am I doing something wrong? Again a big thank you and I'm sure this will only get better.

Thank you for working on this., I see it's working for many. I only have a contact closure on a door. With the update, I see it as a device, but the only 2 entities it has are the battery and report interval. I don't know when it opens and closes. Am I doing something wrong? Again a big thank you and I'm sure this will only get better.

Refers to #530

I will close this issue cause child devices are actually supported. Any issue related to specific child device require a new issue

is there any solution for the smart button s200b

For those looking for any workaround I found a way.
https://github.com/petretiandrea/home-assistant-tapo-p100/pull/784#issuecomment-2480470653


pcli sync not terminating at current block height

Describe the bug
There's something going on with the sync. @zbuc noticed that the syncing seemed to slow down around 20k of the 56k to sync to, which I also see. The issue is that the reported height of the chain (via pcli query chain info) is only 20k, but the sync is continuing to run.
To Reproduce

pcli view sync

Expected behavior
Sync to current block height, and exit
Screenshots
Syncs quickly then slowly advances to a sync height that does not exist

This is something we are currently only seeing on testnet.penumbra.zone (i.e. not on testnet preview)

This seems to be a Tendermint consensus issue, with some other validator getting to a much further block height than the primary validator.
{"backfill_blocks_total":"0","backfilled_blocks":"0","catching_up":false,"chunk_process_avg_time":"0","earliest_app_hash":"8A8AB388A755978DA01FF054B21D29F7319C2A57D1178E0B6F52F906575817BA","earliest_block_hash":"844FB90A7508B21083282BC949F0B716BE7613FC58F7C97FC3DD46F55CAE8E9F","earliest_block_height":"1","earliest_block_time":"2022-09-13T14:40:39Z","latest_app_hash":"41B3906AA7AB4332A590D7D5C83FC5BB43C291AB76E9640729687DF409ACE591","latest_block_hash":"7F5E5218CD5C0DCE6A3AE3448F45F908BBAC333E0E7BE9DBBE666B724F6B3660","latest_block_height":"21212","latest_block_time":"2022-09-14T20:35:23.221212838Z","max_peer_block_height":"56371","remaining_time":"0","snapshot_chunks_count":"0","snapshot_chunks_total":"0","snapshot_height":"0","total_snapshots":"0","total_synced_time":"0"}

(note the max_peer_block_height is 56371 whereas query chain info reports Current Block Height   21218)
What's weird is that our validator maintains 94.13% voting share so I'm not sure what's going on. Maybe a bug that will be fixed by going back to 0.34? /cc @hdevalence

or this calculation just isn't right:
let latest_known_block_height = std::cmp::max(latest_block_height, max_peer_block_height);

https://github.com/penumbra-zone/penumbra/blob/main/view/src/service.rs#L185

Does it really make sense to try to sync to the max peer block height, from a node reporting a lesser block height? My inclination is "no" and we should change the syncing logic to only try to sync to the last block height reported by the node you're syncing against.

nice find! I agree we should sync to latest_block_height instead. Also it looks like this max_peer_block_height field was added to the status RPC endpoint in the 0.35 tendermint release: https://github.com/tendermint/tendermint/pull/6610 and will be going away as it's part of the abandoned tendermint changes (ref: #1271), so another reason to switch away from using it.


Medoo ignores SET SQL_MODE command for MySQL database connections

Information

Version of Medoo: v2.1.4
Version of PHP: 8.1.6
Type of Database: MySQL
System: Linux

Describe the Problem
Medoo ignores SET SQL_MODE command when used in options during Medoo object creation. It is probably executed but then there is the same command executed again in Medoo code and overwrites whatever user has set.
Result is then that no matter the user sets, SQL_MODE always equals "ANSI_QUOTES".
Detail Code
The detail code you are using causes the problem.
new Medoo([
	'command' => [
		'SET SQL_MODE="ANSI_QUOTES,ONLY_FULL_GROUP_BY"'
	]
]);

SQL_MODE gets overwritten by this code in Medoo.php:
case 'mysql':
    // Make MySQL using standard quoted identifier.
    $commands[] = 'SET SQL_MODE=ANSI_QUOTES';
    break;

Expected output
I would expect Medoo to parse SET SQL_MODE (if entered by the user), check if ANSI_QUOTES is in the modes that user specified, if not then add it to the list, if yes, then just continue and let the command execute.
Instead of adding another SET SQL_MODE command into $commands array that overwrites the user specified SQL modes.

You are right. I will fix that.

Thank you for fast reply!

I had a related issue to this one to share and add to the conversation.
An observation I noticed in Medoo#1044 yesterday is that the default line referenced by @scr4bble above:
https://github.com/catfan/Medoo/blob/master/src/Medoo.php#L243
Ends up overriding the SQL_MODE in MySQL completely, even if there are other settings already present within SQL_MODE.
For example, with PlanetScale the default SQL_MODE is the following:
ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION

So after the Medoo line referenced above is executed for the current connection, it would change it to simply be ANSI_QUOTES instead.
A potential alternative approach that would simply add in the ANSI_QUOTES option to the existing list would be maybe something like this:
SET SQL_MODE = IF(FIND_IN_SET('ANSI_QUOTES', @@sql_mode), @@sql_mode, CONCAT(@@sql_mode, ',ANSI_QUOTES'));

Which should leave the SQL_MODE unchanged if ANSI_QUOTES is already in the list, or it will add it to the end if it isn't.
It still doesn't make ANSI_QUOTES work for PlanetScale databases, but this may help allow users to avoid needing to define a custom command in some cases if Medoo is currently overriding their server defaults.


METRON-1717 Relocate Storm Profiler Code [Feature Branch]

This change moves the Storm Profiler module to metron-analytics/metron-profiler-storm.
The core Storm Profiler package was renamed to org.apache.metron.profiler.storm.
All of the Profiler READMEs have been cleaned-up to contain only content relevant to each project.  The main README is now in metron-analytics/metron-profiler-common which links to the others as needed.

Testing

Stand-up a development environment.

Validate the development environment by ensuring alerts are visible within the Alerts UI and that the Metron Service Check in Ambari passes.

Launch the REPL and follow the instructions in the Profiler README to create and execute a profile in the REPL.

Follow the instructions in the README to deploy the same profile in Storm.  Ensure that you can retrieve values from HBase using PROFILE_GET.

Generate the site book and review the READMEs that have changed.
cd site-book
mvn site

Pull Request Checklist
Thank you for submitting a contribution to Apache Metron.
Please refer to our Development Guidelines for the complete guide to follow for contributions.
Please refer also to our Build Verification Guidelines for complete smoke testing guides.
In order to streamline the review of the contribution we ask you follow these guidelines and ask you to double check the following:
For all changes:

[x] Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
[x] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
[x] Has your PR been rebased against the latest commit within the target branch (typically master)?
[x] Have you included steps to reproduce the behavior or problem that is being changed or addressed?
[x] Have you included steps or a guide to how the change may be verified and tested manually?
[x] Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:
[x] Have you written or updated unit tests and or integration tests to verify your changes?
[x] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[x] Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?
[x] Have you ensured that format looks appropriate for the output in which it is rendered by building and verifying the site-book? If not then run the following commands and the verify changes via site-book/target/site/index.html:cd site-book
mvn site

I read through the README and tested in full dev.  Looks great.  +1

Thanks for the review!  The updates were made and has been merged.


Twisted Edge Snowboarding bad graphics

This is using GLideN64. It looks normal using Project64's RSP. The same thing happens on mupen64plus. Looks normal using rsp-hle, but looks like this using rsp-cxd4.

Actually this is probably just a case of GLideN64 failing at LLE, if I set "DisplayListToGraphicsPlugin" then it looks fine.
I'll see myself out...

Without having time to check it out now, I'm fairly sure it's a legitimate find if you have the issue with LLE and only with one RSP plugin.  With that having been said, I'll have to confirm it tomorrow.
What version or commit was your build of my RSP plugin done from?  Also, as I'm not really acquainted with 1080 Snowboarding, is there anything I should know about reaching where you got the glitch?

if I set "DisplayListToGraphicsPlugin" then it looks fine.

Hmm that makes it sound like a pretty old version if it has that INI-like config file model for setting that.
I would run ./make.sh to build the plugin from the latest commit, then most likely that issue is fixed.

The other RSP I tried was HLE, not LLE. I didn't try the Project64 RSP in LLE mode
This is the very beginning of the first race if you just press A through all the menu options. But I'm almost certain it's just a GLideN64 bug.
I tested mupen64plus-rsp-cxd4, which is up to date with this repo, it has the "DisplayListToGraphicsPlugin" option. I can't remember where I got the Project64 compatible copy, it says version 0.1.1 I believe

If you didn't try the LLE mode of the other RSP then the result of LLE has no comparison here.
In that case I think you're correct since it looks fine with z64gl.  This sort of ambiguity might be preventable by having other LLE plugins besides GlideN64 to test with on Mupen64Plus.


I cant understand instruction how to use it

I starting otpauth.exe -link "otpauth-migration://***" but it says
decode data: proto: cannot parse invalid wire-format data

I don't know if it safe, but this website much better and user friendly but this github thing
https://www.googleauthenticator.dev/


send message just when get message

i want send message just when get message , but my sendMessage every time is run in hook.php
i think is infinite loop !

try genericMessageCommand.php

If i'm right it's a general unknown command. Is it right ? what to do about all messages ?


Is it possible to get xref (cross reference) to a member of a custom struct?

Say, if I created my own custom data type (i.e. struct):

I know that I can currently find cross-references to functions and global variables, but I'm curious, if it is possible to find cross-references to one of the members of my custom data type (cpxThumb in this case) as it is being used in the decompiled code?
I'm asking for an option that would work throughout an entire module (executable), as I can obviously do it from within a single function by middle-mouse-clicking the variable name.
Instances like this:

Yes. Right clicking on the type in the "Data Type Manager" gives a context menu with a "Find uses of field..." entry. I believe that should do what you're looking for.

@jrmuizel oh, awesome. That's exactly what I was looking for. Thanks!
(I'll re-tag it into a suggestion now.) It would be really helpful if there was a context menu item in the "Structure editor" window that would do the same. Here's an example:

Also, as a second suggestion. The "Structure Editor" window should allow multiple instances of self to be opened. For instance, I may be working on editing one struct and I might want to open the editor for another struct at the same time. At the current moment if I try to do this, the old instance closes up.


Add test for reconnection and fix one more bug

Not sure the test is guaranteed to work... See comment.
It would also be nice to have a test that really tests sending messages. For example, periodically send a message to a connected node, then disconnect the node causing a few messages to be dropped, and then re-establish the connection and make sure the messages can get through agian.

We have a such test!
https://github.com/filecoin-project/mir/blob/dd333c00d1f76bf5a1546b4d67bef3d8c16a390c/pkg/net/libp2p/libp2p_transport_test.go#L259
Let me know if that test does not correspond to your scenario.

I'm not sure how exactly that test works...
t.Log(">>> disconnecting nodes")
	m.disconnect(nodeA, nodeB)
	m.testEventuallyNotConnected(nodeA, nodeB)

	t.Log(">>> sending messages after disconnection")
	m.testEventuallySentMsg(nodeA, nodeB, &messagepb.Message{})
	m.testThatSenderIs(<-nodeBEventsChan, nodeA)
	m.testEventuallySentMsg(nodeA, nodeC, &messagepb.Message{})
	m.testThatSenderIs(<-nodeCEventsChan, nodeA)

You disconnect, then you try send a message, and expect to be delivered anyway (because the module should automatically re-connect)? If that's the case, I think it doesn't work all the time. If it's not the case, what exactly does this part of the test do?

because the module should automatically re-connect

Correct.

I think it doesn't work all the time.
What do you mean by this?

I think it doesn't work all the time, because there is a possibility arbitrarily many messages being dropped before the connection is established again.

It would also be nice to have a test that really tests sending messages. For example, periodically send a message to a connected node, then disconnect the node causing a few messages to be dropped, and then re-establish the connection and make sure the messages can get through agian.

@matejpavlovic  I added the test. Please check whether it satisfies your requirements.


404 link

https://www.yiiframework.com/doc/guide/2.0/en/intro-upgrade-from-v1#url-management
action IDs

Yup, .md is there and breaks it. Could you fix it, please?

@bizley sure

I looked, in the .md file
[controller IDs] (structure-controllers.md#controller-ids) and [action IDs] (structure-controllers.md#action-ids)
are the same, but for some reason [action IDs] (structure-controllers.md#action-ids) is not displayed correctly.
I can make a direct path or a link, example
[about_yii]: http://www.yiiframework.com/about/
How to do it better?

Link to where?

Link to where?

https://www.yiiframework.com/doc/guide/2.0/en/intro-upgrade-from-v1#url-management

It's yii2-apidoc issue. Duplicate of https://github.com/yiisoft/yii2-apidoc/issues/197.


Fixes bugs in NormalCatalog.py

Summary
Fixes the following problems:

When adding edges to existing nodes, code would not create/add anything.
When data didn't give entire path of a taxonomic hierarchy for each species or other taxonomic categories, code did not return correct results.
Node property name: was still including author and date.

Related Issues

Resolves Issue #65

Backwards incompatibilities
None
New Dependencies
None

Result


[Filesystem::File] Make truncate apply on open in Windows, as it does in Posix

Commit Message: [Filesystem::File] Make truncate apply on open in Windows, as it does in Posix
Additional Description: In Posix, opening a file with O_TRUNC causes its size to become zero on open. In the previous implementation for Windows, file size truncation occurs after write completes. As more file operations may be added to this abstraction, this inconsistency is likely to cause surprises. This change makes the Windows behavior of opening with truncate more similar to the Posix behavior.
Risk Level: Should be small since this reflects how it already works in Posix.
Testing: If it doesn't break any existing tests it should be good!
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: Windows-only change.

/assign-from @envoyproxy/first-pass-reviewers

sorry that I am not familiar with Windows, could we add tests to cover it?

@wrowe would you mind taking a look

@mattklein123 I see you self-assigned this, so holding on the merge till day's end in case you had additional feedback.

Right now it kind of has coverage in that tests verify that truncation happens at some point, which until the addition of pread/pwrite is the only aspect that can reasonably be tested. (And is the only aspect that any dependencies rely upon right now.)
(#24480 is that change, still draft because it depends on this and chains on #24398)

Looks like #24480 will be ready to retest once this merge lands, after updating to main.


@babel/typescript preset

Hi, can this be used purely with babel-loader? Since with Babel 7.x the preset "@babel/typescript", ts-loader does not seem to be needed anymore, but "babel-plugin-import" seems to not support babel 7 yet.
thanks!
Pedro

If you want use babel with TypeScript, here is an alternative which has full compatible with babel:  babel-plugin-import

@Brooooooklyn Indeed, babel-plugin-import is not compatible with babel-preset-typescript. I come from this issue #210.

same problem.
the latest @babel/typescript made things strange.
'legacy' ts-loader and 'normal' babel-loader both ignore this corner

If you are using babel-loader with webpack, please use babel-plugin-import.


Iconbutton isDisabled not doing anything

Describe the bug
Adding isDisabled={true} to IconButton doesn't disable the button.
CodeSandBox/Snack link
Snack: link.
In this snack, even though isDisabled={true}, the button can still be pressed and the onPress callback still triggers.
Platform

NativeBase version: 3.2.2

It looks like IconButton does not have a prop called isDisabled. Here's a link to its definition.

It doesn't but it should, I see how it could be useful for disabling icon buttons

It's got isDisabled as one of its prop in the documentation: https://docs.nativebase.io/icon-button#props ... so either that should be fixed or the same functionality from the <Button /> component should be implemented. I vote for the latter.

It's got isDisabled as one of its prop in the documentation: https://docs.nativebase.io/icon-button#props ... so either that should be fixed or the same functionality from the <Button /> component should be implemented. I vote for the latter.

Hi @1nefootstep , Thanks for reporting the issue.
I will look into it.

Hi @1nefootstep, This issue is resolved in our latest version of NativeBase 3.3.2.


1.10.1 Client crashes

What version of ViaVersion are you using? Type /ver viaversion
0.9.4
What version of Spigot are you using? Type /ver
http://prntscr.com/bjslp3
What plugins are you using? Type /plugins
http://prntscr.com/bjsltk
Are you using any additional software like BungeeCord? If so, what software and version? (Please list your plugins as well)
LilyPad
How does this error happen? login? Using an item?
Upon joining my Prison servers (mc-central.net both prison 1 and 2) 1.10.1 clients instantly crash when loading the chunks in spawn.
Is there an error in the console? Use pastebin.com. Is there a kick message?
Client Crash:
https://www.dropbox.com/s/x69j0sqsnxpcuis/crash-2016-06-23_09.45.42-client.txt?dl=0

This is a Minecraft bug in 1.10.1. @MylesIsCool created a small patch for it that replace the block with another (When you enable it in the config). You can download the devbuild on https://ci.viaversion.com

Use 1.10.2


Login with WAM + no more silent authentication failures cause Terraform errors

Describe the bug
The new WAM-based login (possibly combined with the now no longer silent authentication failures) seems to cause issues with Terraform.
When running a Terraform plan, the output is like the error below (just a snip of much more of this).
When reverting back to the non-WAM login broker, as documented at https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli-interactively#sign-in-with-web-account-manager-wam-on-windows, everything works as before.
Also, when using az login --use-device-code, everything works like before.
Related command
terraform plan
Errors
│ Error: building account: could not acquire access token to parse claims: running Azure CLI: exit status 1: ERROR: (pii). Status: Response_Status.Status_InteractionRequired, Error code:<PHONE_NUMBER>, Tag: 558133255
│ Please explicitly log in with:
│ az login --scope https://graph.microsoft.com/.default
│
│   with provider["registry.terraform.io/hashicorp/azurerm"].management,
│   on terraform.tf line 27, in provider "azurerm":
│   27: provider "azurerm" {
Issue script & Debug output
N/A
Expected behavior
Previous behavior
Environment Summary
azure-cli                         2.62.0
core                              2.62.0
telemetry                          1.1.0
Extensions:
azure-firewall                     1.0.1
Dependencies:
msal                              1.28.1
azure-mgmt-resource               23.1.1
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\svaelter.azure\cliextensions'
Python (Windows) 3.11.8 (tags/v3.11.8:db85d51, Feb  6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]
Additional context
No response

Thank you for opening this issue, we will look into it.

To help us understand what is going on, could you give more information "no longer silent authentication failures"? What is the failure message? How to reproduce this failure?

To help us understand what is going on, could you give more information "no longer silent authentication failures"? What is the failure message? How to reproduce this failure?

The failure message is included under the Errors heading in the issue.
To replicate:

Clear the az account information
Sign in again (using WAM, with at least AZ CLI v 2.61).
Run terraform plan.

Sign in again (using WAM, with at least AZ CLI v 2.61).

What is the command you used?
Have you tried running  az login --scope https://graph.microsoft.com/.default as the error message instructed?

What is the command you used?

Simple az login, as before 2.61+.
Running the login command with a particular scope doesn't solve the issue, as then there's a next scope that needs to be included, and the next one. Eventually you get them all, of course, and then you can deploy TF successfully.
Are you suggesting that in addition to the other changes in 2.61 (which I thought were the root cause of the issue), the login process is different in that it now requires specifying any scope you want to use?
If so, what does az login --use-device-code do differently (as it still works)? Why does reverting to the old login method (not using WAM) still work?

@jiasli Any thoughts? Thanks!

Try specifying the tenant id by adding --tenant TENANT_ID. I had a similiar issue.


Add Meilisearch integration

Background and Motivation
Meilisearch is a flexible, powerful user-focused, lite, fast search engine.
I like having an integration for Meilisearch.

Proposed API
/// <summary>
/// Provides extension methods for adding Meilisearch resources to the application model.
/// </summary>
public static class MeilisearchBuilderExtensions
{
+    public static IResourceBuilder<MeilisearchResource> AddMeilisearch(this IDistributedApplicationBuilder builder, string name, IResourceBuilder<ParameterResource>? masterKey = null, int? port = null);
}

/// <summary>
/// Provides extension methods for registering Meilisearch-related services in an <see cref="IHostApplicationBuilder"/>.
/// </summary>
public static class AspireMeilisearchExtensions
{
+    public static void AddMeilisearchClient(this IHostApplicationBuilder builder, string connectionName, Action<MeilisearchClientSettings>? configureSettings = null)
}

Usage Examples
     var builder = DistributedApplication.CreateBuilder(args);

     var meilisearch = builder.AddMeilisearch("meilisearch");
     var api = builder.AddProject<Projects.Api>("api")
     .WithReference(meilisearch);

     builder.Build().Run();

Alternative Designs

Risks

What is this and why would we add it to the core of aspire?

What is this and why would we add it to the core of aspire?

Meilisearch is a popular search engine (over 46k GitHub stars) like Elasticsearch, but it's lightning-fast and very lightweight compared to Elasticsearch.
It Would be great to have this in the core of aspire.

We move this integration to  community toolkit.
https://github.com/CommunityToolkit/Aspire/issues/65


Add Tangram Android SDK documentation

The tangram-es Android SDK will be launching publicly in the next few weeks. The public tangram documentation (https://mapzen.com/documentation/tangram/) should cover both the browser-based and Android-based Tangram SDKs. I can see several major steps to completing this:

[x] Find and label parts of the docs specific to tangram-js (e.g. "Walkthrough" -> "JS Walkthrough")
[x] Re-word the "Home" page to include both the web and mobile versions of tangram
[x] Create a repository with a minimal tangram-es Android demo app
[x] Add an "Android Walkthrough" page
[x] Add Android API reference documentation (either javadoc or markdown generated from javadoc)

@meetar @rmglennon I'll be asking for help from both of you for this. Two questions to start:

Do these steps make sense?
How do the markdown files in this repo relate to the pages on mapzen.com?

Before we dig in on the mechanics of reorganizing help, I'd like to think more about how we organize this content and how Tangram JS, ES, and mobile SDKs all fit together in documentation and as products.
A few things I was thinking about:

How do we package our mobile SDK documentation and products?
Would someone working on mobile only expect to see content for JS (and vice versa)?
Do we expect more users to use Tangram JS or ES?
How much overlap is there in the contents of the JS and ES documentation?
Is there a help system that covers all the mobile SDKs, including Tangram ES?
Is mobile development and this SDK more closely tied than the two Tangrams? Note that it is possible to have docs duplicated under both Tangram and SDKs (from one set of md files).

I think that the generic Android SDK documentation should be separate from the tangram specific stuff but it should be easy to find if you want to dig in.
@blair1618 @ecgreb @sarahlensing  (Correct me if I'm wrong here)
I feel like most people will be doing things like interacting w the helpers for lines and pins and changing style sheets and that all happens in the Android SDK so the documentation should live there. If they wanted to dig into tangram we should point them into the tangram docs.

@rmglennon Yes, these are good things to consider! I have an issue over at #67 just for them, so I'll just say here that I agree the Android SDK should probably have its own place, but there could definitely be links between the two places, and @blair1618 1) Yes! I think those steps make sense, and  2) I'll try to describe all of that as part of #67 :)

@rmglennon Yes, these are good things to consider, let's talk about that over at #67! I'll just say here that I agree the Android SDK should probably have its own place, but there could definitely be links between the two places, and also @blair1618 1) Yes! I think those steps make sense, and  2) I'll try to describe all of that as part of #67 and we can leave this issue for Android DSK-specific stuff.

[shakes a fist at his dodgy internet connection]

@rmglennon I would tend to agree with how Mike described the differences. The Mapzen Android SDK will offer simplified interfaces to the Tangram Android SDK and I imagine that it will serve as many people's introduction to Tangram, but it will be sufficiently different that it should have separate documentation from the Tangram Android SDK, with ways to find out more about Tangram if a person wants to.

Agreed, for now I would like to see:

Tangram docs section

Scene file
JS API
Android SDK

Mapzen SDK section

salient/common calls for setting up a map, link to Tangram docs for advanced things like making custom scenes

We'll see how this goes and I imagine we'll be changing it up or finding better ways to integrate them as we better understand real-world scenarios.

+1 @bcamper. Mapzen SDK docs will also need to cover things like setting up your API key and value-added integrations (like the current location tracking layer). We are working on a sample app in the SDK repo that will cover all common use cases such as these.
https://github.com/mapzen/android/tree/master/sample

Everything I had originally wanted for this has been implemented now. Thanks everyone!


Allow ability to set custom hashes for filenames in malware YAML file

Allow designated filenames in "malware" yaml files to have custom preset hashes to make believable malware files, etc. for game questions & investigations.
For example:
Given a filename in "malware.yaml" where there's:
filenames:

a.exe
svchost.exe
msdtc.exe`

Allow additional yaml setting to set hashes for each filename. If there's more than one hash, choose a random one to use. If no hashes are set, choose a randomized hash from pre-existing hashes we already assign to malware.
For example:
hashes:

filename: a.exe
hash: 42530f9f92f2440d66b96e610d07b5256566fe47af2fd6e01cd9e1cd9b85c01e
filename: svchost.exe
hash: 9bd6a46182f145240e766380d2df56f299ef36dc05ed1f4637b75514c4fd051e
filename: svchost.exe
hash: 0c3eff5d888cfd0c4c7f1cbc43fad5ca529e70c1a7edc6fcafadca9ebf1e3f88
filename: svchost.exe
hash: b54a65ca16116b92c6fe5eb6c046b5e7e91aab377703ad51c7def93f725a8c42
filename: msdtc.exe
hash: 3bd4e1f0d1d67a25c2df2c2495005089ac2b076e8a447279c505a931cef45b17

Not sure if there's a better way to just have one filename + a list of hashes on YAML.

Resolved in https://github.com/KC7-Foundation/kc7/pull/111


Clear out the .docker_staging directory if it already exists

Currently, running the build pipeline on a directory that already contains .docker_staging will cause the build to fail.

You will run into this if you run the build locally first and then try the remote build.


merge from template-arlac77-github

.github/pr_labeler.yml

chore: remove rollup.config.js (rollup)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 96.319%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
131

Relevant Lines:
134

💛  - Coveralls


RACK-UI give choice after load:  original conn or default graph

Any manifest that contains a copy to default graph should trigger the UI somehow to give the user a choice which to load with SPARQLgraph.

[ ] add convenience function to check if manifest contains copy to default graph (Eric)
[ ] if manifest has copy step, RACK UI should not give user choice to load data to default graph (Jenny)
[ ] if manifest has copy step, RACK UI should ask user whether to open SPARQLgraph with default or non-default graphs (Jenny)
[ ] what if a sub-manifest contains a copy step?  Is a "legal" situation and if so how should we handle it?
[ ] in RACK UI, consider calling "default graph" something more user-friendly like "optimized graph"
[ ] Will we need descriptions of what's in the connections in the manifest so the UI can say something intelligent?

Currently you can parse a manifest file and see if one of the steps is to copy to default graph.
I can add a method that specifically checks if the last step in ingestion is to copy to the default graph. Is that what we'd want to check?

Was there some other reason than triggering optimization for allowing the user to disregard the graphs from the manifest and instead load to default graph?
Asked differently, once manifests can express "copy to default graph", do we still need the knob in the UI that lets the user override to default graph? Supposedly, they could do so by modifying their manifest at this point, no?

"as-loaded"  and "optimized" are suggestions for the links opening SPARQLgraph

@weisenje blocked on @glguy cli python function to tell whether there is a copy to default graph.


Duplicate part of angular

When I see ng2-restangular/dist/umd/ng2-restangular.js it is contains parts of angular framework.
Example:
XHRConnection,
CookieXSRFStrategy,
XHRBackend,
RequestOptions,
Request
.....

I use browserify, which can not dedupe this parts and caouse many anomaly like https://github.com/angular/angular/issues/9294

@tairezzzz @logvinoleg89 @rshchpkn ???

I maked a P.R: https://github.com/2muchcoffeecom/ng2-restangular/pull/16, pls review it thx :)

@tamascsaba Thanks for this 8-)

Please update the package.json version and release to npm, thx :)


Introduce offset for walking time to station

Is your feature request related to a problem? Please describe.
In the current setup, connections are shown which can't be reached any more in time (when leaving home in that particular moment and walking to the station).
Describe the solution you'd like
Introduction of a config parameter (e.g. walkingTimeOffsetMinutes which defaults to 0) to hide connections which are earlier than now()+walkingTimeOffsetMinutes.

Bitte mal Version 1.1.0 testen


Add into iter for decimal array

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
In some cases https://github.com/apache/arrow-rs/pull/1073#discussion_r773211954 , we need iter the decimal array, but the method of the accessor is below

We need to use the loop/for the method to iter the decimal array.
We need to implement the into iter for the decimal array
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

I took a crack at this one in https://github.com/apache/arrow-rs/pull/1223


Add database and warehouse revocations when comparing to spec

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/1476
Originally created by @tayloramurphy on 2019-12-16 20:39:07

As a part of ensuring that the state of the permissions on Snowflake matches the spec definition, this is a second iteration to add warehouse and databases to the list of entities in Snowflake that are validated to match the spec.

View 4 previous comments from the original issue on GitLab


VSCode thinks I don't have any HTML debugger extensions when I do

VS Code Version: 1.56.0 (User Setup)
OS Version: Windows <IP_ADDRESS>63

Steps to Reproduce:

Run a HTML file on Chrome using 'open in browser' extension and browse random websites on the web
Wait for stopping the debugger to not work, and then try to close a VSCode process in Task Manager

Does this issue occur when all extensions are disabled?: Yes

Another bug I encountered was that I was unable to stop the HTML debugger, so I tried stopping it in Task Manager, which resulted in the taskbar icon turning invisible for a second. I tried reinstalling the latest version of VSCode but the issue still persists. Here are my extensions.

I've tried disabling the only extension other than open in browser, but it still doesn't work

Dup of https://github.com/microsoft/vscode/issues/123106


Code quality

Is it an example how you write code in Cleveroad?

Sometimes we give different tasks to our developers (no matter whether it's junior or senior developer) Everyone can upload his personal code examples but it's incorrect to consider that all of us practicing the same approach in code writing.
Of course we have some standarts in our company but it takes time to adapt personal code style to these standarts

Don't you have code review? Especially for public code

@MaxSimS As you can notice it took a month to get your response :)

dispatch: https://github.com/Cleveroad/CRNetworkButton/blob/master/Example/CRNetworkButton/ViewController.swift#L66
code style :) https://github.com/Cleveroad/CRNetworkButton/blob/master/Example/CRNetworkButton/MyCollectionViewController.swift#L26
swift 3 enum: https://github.com/Cleveroad/CRNetworkButton/blob/master/CRNetworkButton/Classes/CRNetworkButton.swift#L12
swift 2 enum: https://github.com/Cleveroad/CRNetworkButton/blob/master/CRNetworkButton/Classes/CRNetworkButton.swift#L36
800 LOC: https://github.com/Cleveroad/CRNetworkButton/blob/master/CRNetworkButton/Classes/CRNetworkButton.swift
the method should be a bit longer: https://github.com/Cleveroad/CRNetworkButton/blob/master/CRNetworkButton/Classes/CRNetworkButton.swift#L639


Repeating keys running IntelliJ in WSLg

Windows build number:
22621.0
Your Distribution version:
22.04
Your WSL versions:
WSL version: <IP_ADDRESS>
Kernel version: <IP_ADDRESS>
WSLg version: 1.0.49
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.1485
Steps to reproduce:
Install jetbrains-toolbox directly to wsl, install IntelliJ and use it with a large project
WSL logs:
No response
WSL dumps:
No response
Expected behavior:
No response
Actual behavior:
After awhile keys will randomly start repeating (particularly bad with IdeaVIM!)
I remember this exact same beviour when I used to use Hyper-V making me think whatever common input library/protocol is to blame

I'm also running Chrome Remote Desktop above this, maybe that is a factor as well

I'm pretty sure it's from whatever common library is used by both WSLg and
Hyper-V because I also experienced this with Hyper-V hosted Linux. I think
I tried to bring it up there too years ago and obviously was never fixed
On Fri, Jan 19, 2024, 9:18 AM Adam Bannach @.***> wrote:

I just started running into this as well. I realize this is an old thread.
I've noticed when typing in the terminal sometimes it will miss a key and
then keys will just stay repeating until I hit another key.
Did you ever find the root cause?
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/wslg/issues/1029#issuecomment-1900502826,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMUMHJ2U6CAI2AKQ3GDED3YPJ6CVAVCNFSM6AAAAAAWRYVE2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQGUYDEOBSGY
.
You are receiving this because you authored the thread.Message ID:
@.***>

Interesting. As I was thinking about this, I realized that I turned on the "Quick accent" tool in PowerToys Which listens to holding a key down to prompt for doing the accented character. I just turned it off, so I'll monitor for a bit, but so far I'm thinking that may have been my problem.

Following up, I haven't had an incident since disabling the "Quick accent" tool. Its worth looking into any services that are running that may be monitoring input from the keyboard. Not a solution, but maybe a clue.

I don't even have PowerToys installed, but still experiencing the same issue.
It gets massively worse if there is more than one WSLg window open, at that point I can basically not type anymore because keys will be just repeating endlessly, until I close all but one window again.


Cleanup

luacheck
mod.conf
recycling recipes
fix formspec invsize -> size and add listring for shift-clicking between inventories
replace outdated meta handling
replace minetest -> core
reduce indentation with smarter 'early exit' code
fix pairs() -> ipairs() loop
reduce chat spam when trying to dig a machine with items in it: not needed this is a general game mechanic
update locales, drop intllib and add Spanish and Catalan
restructure crafts to own file
general cleanup with more informative comments

do we have a problem with the WTF licence in this org? If so we might as well re-licence this.

do we have a problem with the WTF licence in this org? If so we might as well re-licence this.

don't care IMO :shrug:

do we have a problem with the WTF licence in this org? If so we might as well re-licence this.

Just CDB had issues with certain licenses like WTFPL and that's why there's been talk about dual licensing on some repos, not sure how it is currently.


I can't find anything because there are too many options

Description of the new feature / enhancement
Add a search bar to locate options and features, just like the "WinUI 3 Gallery" application.
Scenario when this would be used?
When trying to find an option you know exists, but have given up trying to find it.
Supporting information
No response

Good idea, /dup #8060


AwsRequestSigning is broken for S3 Paths that contain special characters

AwsRequestSigning is broken for S3 object keys that contain special characters that need URL encoding (most notably whitespace and percent characters that are quite common in filenames).
This triggers a signature mismatch and 403 responses from AWS.
Repro steps:
Given a S3 object with object key test file (with space):
Request against envoy: GET /test%20file
Canonical request as returned in the AWS error response:
GET
/test%20file

host:bucket.s3.us-west-2.amazonaws.com

Canonical request as printed in the debug output from Envoy:
GET
/test%2520file

host:bucket.s3.us-west-2.amazonaws.com

Issue:
the S3 object key is already UrlEncoded in the request, but the envoy AwsRequestSigning implementation is quoting it yet another time resulting in a double-quoting and a 403 response from AWS as a result, see
https://github.com/envoyproxy/envoy/blob/main/source/extensions/common/aws/utility.cc#L155-L208

@derekargueta @suniltheta @mattklein123 @marcomagdy @nbaws

will grab this one

@j-gottfried thank you for your bug report. I've confirmed that in the attached PR we now correctly avoid double encoding and added test cases to match.
for s3 path "test folder/%"
% curl -v localhost:8099/test%20folder/%25

* Host localhost:8099 was resolved.
* IPv4: <IP_ADDRESS>
*   Trying <IP_ADDRESS>:8099...
* Connected to localhost (<IP_ADDRESS>) port 8099
> GET /test%20folder/%25 HTTP/1.1
> Host: localhost:8099
> User-Agent: curl/8.5.0
> Accept: */*
>
< HTTP/1.1 200 OK
< x-amz-request-id: xxxxx
< date: Wed, 03 Jul 2024 23:02:13 GMT
< last-modified: Wed, 03 Jul 2024 22:59:57 GMT
< etag: "xxxx"
< x-amz-server-side-encryption: AES256
< accept-ranges: bytes
< content-type: binary/octet-stream
< server: envoy
< content-length: 8
< x-envoy-upstream-service-time: 25
<
testing
* Connection #0 to host localhost left intact


Linguist - Added new dedicated module for the Linguist Tags Processor

Hey, I just made a Pull Request!
Added new dedicated module for the Linguist Tags Processor and deprecated the version in the Linguist Backend
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[x] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

Hi @bforbis, going to need your help with reviewing this, please? No rush, as you have time.

@awanlin left some comments for you. Apologize for the delay in review, the weather has been really nice outside :)


Feature request. Wide angle camera lens.

Dear developers please add option to chose phone wide angle camera lens if it available.

Will do. Very approximately, it will be a couple of months.

Turns out this change must be implemented in Kivy, here
https://github.com/kivy/kivy/blob/master/kivy/core/camera/camera_avfoundation_implem.m
I do not plan to do this.


Spotter can only be resized when "catching" it over desktop.

This is on Win10, Build 281.
What I do:

Create a Spotter.

Try to resize over the "morphic World" icon -> Does not work!

Hm, this is not quite it. Sometimes it works to get the gray bar to change the spotter size, sometimes not. First I thought it was on the background/ Icon, but it was only sometimes the case.
I have the impression the spotter "extend bar" needs more priority - as it is very volatile and disappears when you click outside it.
another idea would be to add a button to make the spotter permanent, instead of volatile.

Had a github synchronisation problem, and the idea that the ticket was not uploaded. the #127 has the better topic.


Fatal GuzzleHTTP cURL error 7 with Wordpress website

Environment details

OS: Debian GNU/Linux
PHP version: 7.4
Wordpress

I am running into a difficult error on my wordpress website. I am using the Google Drive API. Occasionally on my wordpress site, I would get this 500 server exception. The exception sometimes appears and sometimes disappears. We have tried creating a new service account but the error persists.
This is the exception:
 Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 7: (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in /home/www/testing.com/wp-content/themes/testingspace/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:200 Stack trace: #0 /home/www/testing.com/wp-content/themes/testingspace/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array) #1 /home/www/testing.com/wp-content/themes/testingspace/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(105): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #2 /home/www/testing.com/wp-content/themes/testingspace/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #3 /home/www/testing.com/wp-content/ in /home/www/testing.com/wp-content/themes/testingspace/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 200
Even when it disappears, I still can’t access the Google Drive Account. below is a snippet of my testing code. I listed the relevant functions (getClient, getToolDrive, getDocuments) and the code that was used to call the functions. The connection/authentication part of the code is a straight copy and paste of google’s quickstart php code for setting up Google Drive API so it shouldn’t be the problem.
function getClient() {
    $client = new Google_Client();
    $client->setAuthConfig(__DIR__ . "/ tool-dev1283726.json");
    $client->setApplicationName(“Testing”);
    $client->setScopes(Google_Service_Drive::DRIVE);

    return $client;
}

function getToolDrive($service, $user)
{
    // Print the names and IDs for up to 30 files.
    $optParams = array(
    'pageSize' => 30,
    'fields' => 'nextPageToken, files(id, name)'
    );

     $results = $service->files->listFiles($optParams); //exception is thrown here

    ...
    return $userFolder;
}

$client = getClient();
$service = new Google_Service_Drive($client);
// echo response text
// If a POST request to self was made, hide all output except the material update.
if(count($_POST) > 0) {
    ob_end_clean();
}
$drive = getToolDrive($service, $current_user->user_login);

So how do we fix this exception?  Any help is greatly appreciated! Thanks!

Hi @jeremyjones999999
Apologies for the delay in response on this issue, perhaps you've already solved the issue.
I tried your code snippet and it works fine for me. But like you mentioned it occurs occasionally  on your environment, perhaps this is something related to where you're hosting the wordpress site or something related to the networking setup.
I'll be closing this as I can't reproduce this issue, but please reopen this if you think you need more discussion on this.
Thanks.


New editor mail

This branch adds a feature which sends notification mails to users who have been promoted to editor.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[BUG] Cascaded algorithm correctness depends on compiler flag

Describe the bug
On branch-2.2, compiling the Cascaded algorithm with the -G flag changes the static shared memory alignment behavior, causing misalignment errors.
Steps/Code to reproduce bug

Modify CMakeLists.txt:

Comment out line CMakeLists.txt:33

set(CMAKE_CUDA_FLAGS_DEBUG "${CMAKE_CUDA_FLAGS_DEBUG};-g")

Uncomment line CMakeLists.txt:32

set(CMAKE_CUDA_FLAGS_DEBUG "${CMAKE_CUDA_FLAGS_DEBUG};-G").

Run tests/test_cascaded.cpp with the following test case:

TEST_CASE("comp/decomp cascaded-small-uint64", "[nvcomp][small]").

To compile successfully, I reduced the default_chunk_size in default_chunk_size from 4096 to 2048.
Expected behavior
The test should pass without errors.
Environment details (please complete the following information):

Environment location:

Ubuntu-22.04

Driver Version: 555.99

CUDA Version: 12.5

NVIDIA GeForce RTX 3080

Method of nvCOMP install: branch-2.2 source code

Additional context
After debugging, I explicitly declared alignment for shared memory allocation in the following files:
CascadedHlifKernels.cu:122
__shared__ __align__(sizeof(data_type)) uint8_t shmem[shmem_size];

CascadedKernels.cuh:801
__shared__ __align__(sizeof(data_type)) uint32_t chunk_metadata[max_chunk_metadata_size / sizeof(uint32_t)];

After making these changes, all tests in test_cascaded.cpp passed. I believe this dependency on compiler optimization for correctness is a bug.

Thanks for the bug report.  As far as I can tell, this bug was most likely fixed in nvCOMP 2.6.0 or 2.6.1, in January 2023.


Fix val_cnt for if

#46

@ia0 I posted https://github.com/zhouwfang/wasefire/pull/5 to show the debug asserts added for val_cnt and pop_cnt with a question. Could you take a look? Thanks.


[RELAY][Parser] Optimize relay parser to restore calls attrs

Relay parser does not support to restore the attrs value when it is a non-OpNode call.
To avoid too much modification to the native code, only print out the attrs type key of non-Operator Call in relay printer. Then reconstruct the attrs object after parsing this attrs_type_key value in Relay parser.
@jroesch please review.

I think the change makes sense, but could you add a few test cases to the parser and I will take another look?

I think the change makes sense, but could you add a few test cases to the parser and I will take another look?

I think the change makes sense, but could you add a few test cases to the parser and I will take another look? Thanks for the fix!

Thanks for the reminder

I think the change makes sense, but could you add a few test cases to the parser and I will take another look? Thanks for the fix!

Thanks for the reminder

Rebased. @masahi @jroesch

Please help review @masahi @jroesch.

Sorry I some how missed the notification for this one, LGTM thanks!


data: prrajput1199

@senali-d I have made the changes you suggested. Looking forward for your further review.

Thanks for contributing :star2:

@kumarsonsoff3 I have made the changes you suggested.


wrap etcdctl command

wrap etcdctl command

Types of Changes
feature

Verification

run k3s etcdctl member list

you should see the members of etcd of the cluster up and running

please update it asap

i don't think wrap etcdctl is good idea. please use it as addon.

@xiaods please share your reasoning

I mean we should use separate binary file for etcdctl, don't need embed code with k3s. the kubectl,crictl already go wrong. we don't need use go tricks to package another source code to k3s. keep k3s simple is king. use asset patten to bundle addon ctl cmd is first option.

I do not understand what you mean by "the kubectl,crictl go wrong" (your english is fine, but you've packed a lot of ambiguous meaning into a few words).
I am open to considering that we should ship plain etcdctl with a wrapper that sets some envvars and/or flags.
There is something to be said for the reasoning at #3796 which is asking for a k3s-native etcdctl, similar to our kubectl or crictl, that will set necessary k3s-specific flags automatically without forcing the user to look up the various bits. We've made it super easy for the user to setup an etcd cluster. Should we not also make it as relatively easy to manage on the CLI?
There is a legitimate argument to be made that, indeed, this is a "know what you're doing" check. AKA maybe we should avoid locking the already-loaded foot-gun in on the user's foot.

I respect the current design of k3s and kubectl, crictl components, I just think the current design does not need to continue to integrate too many third-party command-line components, with native components embedded in the golang assets pattern is alternative choice.
see my approach way: https://github.com/xiaods/k8e/blob/master/hack/download#L27

Closing this PR has the team has decided not to embed etcdctl into k3s.


Prevent autocompleting passwords in FF

https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#preventing_autofilling_with_autocompletenew-password
Before

After

After (Chrome)

Pull Request Test Coverage Report for Build 87fce9b42e5bbb308884c3888bb34c1898301e8f-PR-936

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 67.458%

Totals

Change from base Build bc7bdb3386b33b11e4bb862698833a2e9177e587:
0.0%

Covered Lines:
1051

Relevant Lines:
1558

💛  - Coveralls


FR: Disable Translucency in Safari View Controller

Would it be possible to disable the translucency in the safari view controllers? I am passing SafariControlTintColor and SafariBarTintColor options to match my app design, but because of the translucency that the SFVC applies, the colors do not match. Sending an alpha value of 255 does not work.
Thanks!

Do you know what the logic is in the platform API? we just set: PreferredBarTintColor which is setting it to 255 for alpha.

No, I don't. I've been looking around with Google and playing with a test project and there might not be a way do do what I want.  However, just to provide a little more explanation in case someone else comes along with a better idea, here is a screenshot of my Forms app and the SafariViewController with the same RBGA values (3,36,77,255).

what if you call it natively and not with the plugin?

It has the same effect.  On a native navigation page, you have a property UIKit.UINavigationBar.Translucent.  There doesn't appear to be any way to expose that property with a SafariViewController.
Here's someone else asking about this in the Apple forums
And here's a question I put up on Stack Overflow
I'll let you know if I find out anything else.

No new functionality will be added to this library and all are moving to https://github.com/xamarin/Essentials


kfp-profile-controller python not found

Bug Description
kfp-profile-controller python not found
To Reproduce
juju deploy kubeflow --channel 1.8/stable --trust

Environment
Juju 3.1/stable
Microk8s 1.30/stable
Kubeflow 1.8/stable
Relevant Log Output
# ----- Juju status
juju status --color| grep -vE "active|started"                                                                                g: Sat Jun  1 01:07:22 2024

Model     Controller          Cloud/Region        Version  SLA          Timestamp
kubeflow  microk8s-localhost  microk8s/localhost  3.1.8    unsupported  01:07:23Z

App                        Version                  Status       Scale  Charm                    Channel          Rev  Address         Exposed  Message
katib-db                   8.0.35-0ubuntu<IP_ADDRESS>  waiting          1  mysql-k8s                8.0/stable       127  <IP_ADDRESS>  no       installing agent
katib-db-manager                                    waiting          1  katib-db-manager         0.16/stable      411  <IP_ADDRESS>  no       installing agent
kfp-persistence                                     waiting          1  kfp-persistence          2.0/stable      1291  <IP_ADDRESS>  no       installing agent
kfp-profile-controller                              waiting          1  kfp-profile-controller   2.0/stable      1278  <IP_ADDRESS>   no       installing agent
kfp-ui                                              maintenance      1  kfp-ui                   2.0/stable      1285  <IP_ADDRESS>   no       Reconciling charm: executing component relation:ingress

Unit                          Workload     Agent  Address     Ports          Message
katib-db-manager/0*           waiting      idle   <IP_ADDRESS>                 Waiting for relational-db data
katib-db/0*                   maintenance  idle   <IP_ADDRESS>                 Initialising mysqld
kfp-persistence/0*            maintenance  idle   <IP_ADDRESS>                 Reconciling charm: executing component container:persistenceagent
kfp-profile-controller/0*     waiting      idle   <IP_ADDRESS>                 [container:kfp-profile-controller] Waiting for Pebble services (kfp-profile-controller).  If this persists, it could ...

# ----- Logs
unit-kfp-profile-controller-0: 00:59:17 INFO unit.kfp-profile-controller/0.juju-log Executing component: 'container:kfp-profile-controller'
unit-kfp-profile-controller-0: 00:59:17 ERROR unit.kfp-profile-controller/0.juju-log execute_components caught unhandled exception when executing configure_charm for container:kfp-profile-controller
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-kfp-profile-controller-0/charm/venv/charmed_kubeflow_chisme/components/charm_reconciler.py", line 92, in reconcile
    component_item.component.configure_charm(event)
  File "/var/lib/juju/agents/unit-kfp-profile-controller-0/charm/venv/charmed_kubeflow_chisme/components/component.py", line 50, in configure_charm
    self._configure_unit(event)
  File "/var/lib/juju/agents/unit-kfp-profile-controller-0/charm/venv/charmed_kubeflow_chisme/components/pebble_component.py", line 131, in _configure_unit
    self._update_layer()
  File "/var/lib/juju/agents/unit-kfp-profile-controller-0/charm/venv/charmed_kubeflow_chisme/components/pebble_component.py", line 142, in _update_layer
    container.replan()
  File "/var/lib/juju/agents/unit-kfp-profile-controller-0/charm/venv/ops/model.py", line 1915, in replan
    self._pebble.replan_services()
  File "/var/lib/juju/agents/unit-kfp-profile-controller-0/charm/venv/ops/pebble.py", line 1680, in replan_services
    return self._services_action('replan', [], timeout, delay)
  File "/var/lib/juju/agents/unit-kfp-profile-controller-0/charm/venv/ops/pebble.py", line 1761, in _services_action
    raise ChangeError(change.err, change)
ops.pebble.ChangeError: cannot perform the following tasks:
- Start service "kfp-profile-controller" (cannot start service: exec: "python": executable file not found in $PATH)
----- Logs from task 0 -----
2024-06-01T00:59:17Z ERROR cannot start service: exec: "python": executable file not found in $PATH
-----
unit-kfp-profile-controller-0: 00:59:18 INFO unit.kfp-profile-controller/0.juju-log HTTP Request: GET https://<IP_ADDRESS>/apis/apiextensions.k8s.io/v1/customresourcedefinitions "HTTP/1.1 200 OK"

Additional Context
No response

The cause of this issue was that during https://github.com/canonical/kfp-operators/pull/414 we forgot to update the command to use python3, as we did in https://github.com/canonical/kfp-operators/pull/477. The thing that I do not get is why the CI is passing since it's checking the status of the charms, and as this issue mentioned (and I reproduced on juju 3.5), the charm is not going to Active when the workload cannot start. I reran the kfp bundle tests in a PR:

If it fails, it probably means that something changed in the image we use.
If it succeeds, I 'll file an issue so we can improve our test coverage.

We at Solutions QA have also seen this bug occur since the latest update ... you'll find the identified occurrences here.

Thank you @motjuste for adding more information. This issue has now been fixed now (in #501) and is released to 2.0/stable. New CKF 1.8/stable should have the fix by default while for existing ones, you can refresh the specific charm to latest changes 2.0/stable. While doing so, make sure that the resource is also upgraded (juju outputs a relevant message in the refresh command).


Node v14.17.6 causing the node:crypto module not found issue

What version of OpenTelemetry are you using?
0.52.0
What version of Node are you using?
v14.17.6
What did you do?

implemented simple telemetry
What did you expect to see?
telemetry starting correctly and exporting data correctly
What did you see instead?
application fails to run becuase of node:crypto module not found
Additional context

This issue occurs only with the node v14.17.6 or prior version, somehow getting the error node:crypto module not found which in the call stack shows is required by gcp-detector, this gcp-detector internally uses the gaxios which is further dependent on 'node:crypto' module
Error stack below:
Error: Cannot find module 'node:crypto'
[0] Require stack:
[0] - .../src/main/node/node_modules/gaxios/node_modules/uuid/dist/rng.js
[0] - .../src/main/node/node_modules/gaxios/node_modules/uuid/dist/v1.js
[0] - .../src/main/node/node_modules/gaxios/node_modules/uuid/dist/index.js
[0] - .../src/main/node/node_modules/gaxios/build/src/gaxios.js
[0] - .../src/main/node/node_modules/gaxios/build/src/index.js
[0] - .../src/main/node/node_modules/gcp-metadata/build/src/index.js
[0] -<EMAIL_ADDRESS>[0] -<EMAIL_ADDRESS>[0] -<EMAIL_ADDRESS>[0] -<EMAIL_ADDRESS>[0] -<EMAIL_ADDRESS>

Does anyone know about this??

The quickest workaround here assuming you aren't on GCP is to install the instrumentations and detectors you need manually without using the auto-instrumentations-node package. That package adds a lot of things and dependencies and it looks like we may not have control over this.

One other thing you can try is to update to at least 14.18.x which adds support for require('node:*') style imports.

I'll try to track down the dep update that resulted in this. I'm guessing it is a transitive dep, so pinning is hard.

I wonder if this could have been from https://github.com/googleapis/gaxios/pull/638
There was a short while when gaxios@6 (the current version used by @opentelemetry/resource-detector-gcp had a dependency on uuid@10, which broke support for earlier Node.js v14. Then gaxios reverted back to uuid@9.
@architgarg95 Could you please show the output of npm ls gaxios and npm ls uuid on your tree that is hitting this issue?

Actually, it looks like there has not been a new gaxios@6 release since it moved back to using uuid@9.
<EMAIL_ADDRESS>is the problematic verison.
So a workaround, until there is a new gaxios release, would be to pin to release<EMAIL_ADDRESS>if possible.

I knew this was familiar, I reported this earlier: https://github.com/googleapis/gaxios/issues/637
The result of that was the https://github.com/googleapis/gaxios/pull/638 fix. We are now just waiting for a new release of gaxios.

I wonder if this could have been from https://github.com/googleapis/gaxios/pull/638
There was a short while when gaxios@6 (the current version used by @opentelemetry/resource-detector-gcp had a dependency on uuid@10, which broke support for earlier Node.js v14. Then gaxios reverted back to uuid@9.
@architgarg95 Could you please show the output of npm ls gaxios and npm ls uuid on your tree that is hitting this issue?

Its from gaxios, it has code for require('node:crypto') which is causing this issue

@architgarg95 Yes, I know it is from gaxios. Could you please show the output of npm ls gaxios and npm ls uuid in your tree. That will show me the exact versions, which helps clarify that I understand the issue.

npm ls gaxios output:
└─┬<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>npm ls uuid output:
<EMAIL_ADDRESS>│   └─┬<EMAIL_ADDRESS>│     └─┬<EMAIL_ADDRESS>│       └─┬<EMAIL_ADDRESS>│         └──<EMAIL_ADDRESS>

@trentm Do you know anything about this??

There is now a<EMAIL_ADDRESS>release with a fix.
If I now install the auto-instrumentations-node package, the resulting install has<EMAIL_ADDRESS>and uuid@9, which should now work with Node.js 14:
% npm install @opentelemetry/auto-instrumentations-node
⸨  ░░░░░░░░░░░░░░░░⸩ ⠦ fetchMetadata: sill resolveWithNewModule<EMAIL_ADDRESS>checking installable status

><EMAIL_ADDRESS>postinstall /Users/trentm/tmp/asdf.20240809T154923/node_modules/protobufjs
> node scripts/postinstall

npm WARN<EMAIL_ADDRESS>No description
npm WARN<EMAIL_ADDRESS>No repository field.

+<EMAIL_ADDRESS>added 151 packages from 152 contributors and audited 151 packages in 12.656s

9 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

% npm ls uuid
<EMAIL_ADDRESS>/Users/trentm/tmp/asdf.20240809T154923
└─┬<EMAIL_ADDRESS>  └─┬<EMAIL_ADDRESS>    └─┬<EMAIL_ADDRESS>      └─┬<EMAIL_ADDRESS>        └──<EMAIL_ADDRESS>