Cannot debug VS Code brought from Visual Studio

The above project is a working Visual Studio template for Autodesk Revit plugins and I am trying to make it work with Visual Studio Code using Omnisharp.
RevitAddin - Visual Studio Code.zip
Project runs "dotnet build" command without error messages.
Project runs debugging in Visual Studio where after build, configuration fires up the "Autodesk\Revit 2018\Revit.exe" application where the plugin is loaded to be debug. It seems that Visual Studio Code cannot properly understand how to fire up "Autodesk\Revit 2018\Revit.exe" application. Do we need any modification in the following configuration?
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <StartAction>Program</StartAction>
    <StartProgram>$(ProgramW6432)\Autodesk\Revit 2018\Revit.exe</StartProgram>
  </PropertyGroup>

The generated "launch.json" file is the following:
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": ".NET Core Launch (console)",
            "type": "coreclr",
            "request": "launch",
            "WARNING01": "*********************************************************************************",
            "WARNING02": "The C# extension was unable to automatically decode projects in the current",
            "WARNING03": "workspace to create a runnable launch.json file. A template launch.json file has",
            "WARNING04": "been created as a placeholder.",
            "WARNING05": "",
            "WARNING06": "If OmniSharp is currently unable to load your project, you can attempt to resolve",
            "WARNING07": "this by restoring any missing project dependencies (example: run 'dotnet restore')",
            "WARNING08": "and by fixing any reported errors from building the projects in your workspace.",
            "WARNING09": "If this allows OmniSharp to now load your project then --",
            "WARNING10": "  * Delete this file",
            "WARNING11": "  * Open the Visual Studio Code command palette (View->Command Palette)",
            "WARNING12": "  * run the command: '.NET: Generate Assets for Build and Debug'.",
            "WARNING13": "",
            "WARNING14": "If your project requires a more complex launch configuration, you may wish to delete",
            "WARNING15": "this configuration and pick a different template using the 'Add Configuration...'",
            "WARNING16": "button at the bottom of this file.",
            "WARNING17": "*********************************************************************************",
            "preLaunchTask": "build",
            "program": "${workspaceFolder}/bin/Debug/<insert-target-framework-here>/<insert-project-name-here>.dll",
            "args": [],
            "cwd": "${workspaceFolder}",
            "console": "internalConsole",
            "stopAtEntry": false
        },
        {
            "name": ".NET Core Attach",
            "type": "coreclr",
            "request": "attach",
            "processId": "${command:pickProcess}"
        }
    ]
}

Any advice will be really appreciated.
Many thanks, Alex

@alexberd From looking at the generated launch.json, it seems there were problems loading your project.
Can you share the OmniSharp Log from the Output pane?
Also, does running the Run Build Task in VS Code build your project correctly?
-Joey

Hi @JoeRobich and @cartermp, I am quite new to the omnisharp project and I am not sure how to set the launch.json and tasks.json files. Could you please advise how to create those files for the above project? (https://github.com/OmniSharp/omnisharp-roslyn/files/4647590/RevitAddin.-.Visual.Studio.Code.zip)
Any help would be really appreciated.
Project builds perfectly with .Net but not in VSCode. The current launch.json has automatically been created by VSCode but it does not seem right. The same for the tasks.json.
Below are the configurations I tried so far and the errors from the debug console. One of the messages says "Failed to run as a self-contained app". However my app is not self-contained, but a plugin for another application (Revit.exe). Is there any way I can define the execution to be done by Revit?
launch.json:
"version": "0.2.0",
  "configurations": [
      {
          "name": ".NET Core Attach",
          "type": "coreclr",
          "request": "attach",
          "processId": "${command:pickProcess}"
      },

      {
          "logging": {
              "engineLogging": true
          },
          "name": ".NET Core Launch (console)",
          "type": "coreclr",
          "request": "launch",
          "preLaunchTask": "build",
          "program": "${workspaceFolder}/bin/Debug/RevitAddin - Visual Studio Code.dll",
          "args": [],
          "cwd": "${workspaceFolder}",
          "console": "internalConsole",
          "stopAtEntry": false
      },
      {
          "name": ".NET Core Attach",
          "type": "coreclr",
          "request": "attach",
          "processId": "${command:pickProcess}"
      }
  ]
}

tasks.json:
"version": "2.0.0",
    "tasks": [
        {
            "label": "build",
            "command": "dotnet",
            "type": "shell",
            "args": [
                "build",
                // Ask dotnet build to generate full paths for file names.
                "/property:GenerateFullPaths=true",
                // Do not generate summary otherwise it leads to duplicate errors in Problems panel
                "/consoleloggerparameters:NoSummary"
            ],
            "group": "build",
            "presentation": {
                "reveal": "silent"
            },
            "problemMatcher": "$msCompile"
        }
    ]
}

DEBUG CONSOLE:
-> (C) {"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"coreclr","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true},"type":"request","seq":1}
-> (C) {"command":"launch","arguments":{"logging":{"engineLogging":false},"name":".NET Core Launch (console)","type":"coreclr","request":"launch","preLaunchTask":"build","program":"C:\\Users\\RevitAddin - Visual Studio Code\\RevitAddin - Visual Studio Code/bin/Debug/RevitAddin - Visual Studio Code.dll","args":[],"cwd":"C:\\Users\\RevitAddin - Visual Studio Code\\RevitAddin - Visual Studio Code","console":"internalConsole","stopAtEntry":false,"internalConsoleOptions":"openOnSessionStart","__sessionId":"01802ee3-2768-40db-98ee-021bccb0cc2c"},"type":"request","seq":2}
<- (E) {"seq":3,"type":"event","event":"output","body":{"category":"console","output":"-------------------------------------------------------------------\nYou may only use the Microsoft .NET Core Debugger (vsdbg) with\nVisual Studio Code, Visual Studio or Visual Studio for Mac software\nto help you develop and test your applications.\n-------------------------------------------------------------------\n"}}
-------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------
<- (R) {"seq":4,"type":"response","request_seq":2,"success":true,"command":"launch"}
<- (E) {"seq":5,"type":"event","event":"initialized","body":{}}
-> (C) {"command":"setBreakpoints","arguments":{"source":{"name":"Command.cs","path":"c:\\RevitAddin - Visual Studio Code\\RevitAddin - Visual Studio Code\\Command.cs","checksums":[{"algorithm":"SHA1","checksum":"eb55cb848d71bc37c589a57b91fd48b39c765094"},{"algorithm":"SHA256","checksum":"03a45b125f9b7ed2e2f54ba6a54cc0450c32a0cde230048213b4cc29e7d02fb9"},{"algorithm":"SHA1","checksum":"c015394dfb59b30544b96cce9f71d9a96ea66b4a"},{"algorithm":"SHA256","checksum":"6ec8502a1eefeb6cc801d05f670df834b1146132ba1925ea440133550a8792a2"}]},"lines":[22],"breakpoints":[{"line":22}],"sourceModified":false},"type":"request","seq":3}
<- (R) {"seq":6,"type":"response","request_seq":3,"success":true,"command":"setBreakpoints","message":"","body":{"breakpoints":[{"id":1,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts.","line":22}]}}
-> (C) {"command":"setExceptionBreakpoints","arguments":{"filters":["user-unhandled"]},"type":"request","seq":4}
<- (R) {"seq":7,"type":"response","request_seq":4,"success":true,"command":"setExceptionBreakpoints"}
-> (C) {"command":"configurationDone","type":"request","seq":5}
<- (E) {"seq":8,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/ProcessCreate","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"16.6.20415.1 commit:0184bb70e1ed40656c0dfa53125805036207007b","VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"10.0.18362"}}}
<- (E) {"seq":9,"type":"event","event":"process","body":{"name":"C:\\Users\\RevitAddin - Visual Studio Code\\RevitAddin - Visual Studio Code\\bin\\Debug\\RevitAddin - Visual Studio Code.dll","systemProcessId":41600,"isLocalProcess":true,"startMethod":"launch"}}
<- (E) {"seq":10,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/Launch","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"16.6.20415.1 commit:0184bb70e1ed40656c0dfa53125805036207007b","VS.Diagnostics.Debugger.vsdbg.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"10.0.18362","VS.Diagnostics.Debugger.vsdbg.Launch.Duration":203,"VS.Diagnostics.Debugger.vsdbg.TargetType":"Live","VS.Diagnostics.Debugger.vsdbg.AdapterId":"coreclr","VS.Diagnostics.Debugger.vsdbg.SourceFileMappings":0}}}
<- (R) {"seq":11,"type":"response","request_seq":5,"success":true,"command":"configurationDone"}
<- (E) {"seq":12,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":1,"verified":false,"message":"No symbols have been loaded for this document.","line":22}}}
-> (C) {"command":"threads","type":"request","seq":6}
<- (R) {"seq":13,"type":"response","request_seq":6,"success":true,"command":"threads","message":"","body":{"threads":[]}}
<- (E) {"seq":14,"type":"event","event":"output","body":{"category":"stdout","output":"A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\\Users\\RevitAddin - Visual Studio Code\\RevitAddin - Visual Studio Code\\bin\\Debug\\'.\r\n"}}
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Users\RevitAddin - Visual Studio Code\RevitAddin - Visual Studio Code\bin\Debug\'.
<- (E) {"seq":15,"type":"event","event":"output","body":{"category":"stdout","output":"Failed to run as a self-contained app. If this should be a framework-dependent app, add the C:\\Users\\RevitAddin - Visual Studio Code\\RevitAddin - Visual Studio Code\\bin\\Debug\\RevitAddin - Visual Studio Code.runtimeconfig.json file specifying the appropriate framework.\r\n"}}
Failed to run as a self-contained app. If this should be a framework-dependent app, add the C:\Users\RevitAddin - Visual Studio Code\RevitAddin - Visual Studio Code\bin\Debug\RevitAddin - Visual Studio Code.runtimeconfig.json file specifying the appropriate framework.
<- (E) {"seq":16,"type":"event","event":"output","body":{"category":"stderr","output":"The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.\n"}}
The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.
<- (E) {"seq":17,"type":"event","event":"output","body":{"category":"console","output":"The program '[41600] RevitAddin - Visual Studio Code.dll' has exited with code -2147450749 (0x80008083).\n"}}
The program '[41600] RevitAddin - Visual Studio Code.dll' has exited with code -2147450749 (0x80008083).
<- (E) {"seq":18,"type":"event","event":"exited","body":{"exitCode":-2147450749}}
<- (E) {"seq":19,"type":"event","event":"terminated","body":{}}
-> (C) {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":7}
<- (E) {"seq":20,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/DebugCompleted","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"16.6.20415.1 commit:0184bb70e1ed40656c0dfa53125805036207007b","VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"10.0.18362","VS.Diagnostics.Debugger.vsdbg.DebugCompleted.BreakCounter":0,"VS.Diagnostics.Debugger.vsdbg.AdapterId":"coreclr"}}}
<- (R) {"seq":21,"type":"response","request_seq":7,"success":true,"command":"disconnect"}

The library 'hostpolicy.dll' required to execute the application was not found in 'C:\\Users\\RevitAddin - Visual Studio Code\\RevitAddin - Visual Studio Code\\bin\\Debug\\'.\r\n"}}
Did you forget to copy a referenced assembly to the output-folder, or did you set the CWD to the wrong one?

Closing due to lack of activity.


Consider Efficiency

For some reason, this program seems particuarly slow to run, which i think may be as a result of some of the changes I made last night (mostly to do with HashSets, but also a few other things). This should be investigated and improved upon.
Another thing to consider - We are (almost) always fed (simplified) Chinese characters, so the dictionary should be sorted alphabetically by these (I have a suspicion that it may currently be sorting alphabetically by Pinyin, resulting in effectively a linear search rather than a binary one.

One possibility that occured to me is that we should override the hashCode() method in word.  More investigation must be done.

I can confirm that currently Extract.getWordFromChinese does a linear search :P

This is more or less done now, I changed the following:
-Overrode the hashCode method in the Word class (though I'm not sure this made much difference...)
-Switched from using a String to a StringBuilder in the getCharsFromFile method - this made a HUGE difference
-Fixed some bugs along the way


Estimate kd and kp for PID controller

Hello,
how did you estimate the values of kp and kd for the humanoid?
If I were to develop a different model, how could I estimate the 2 parameters?

I am trying to build a robotic hand model controlled using pybullet.
However, I am having some issues regarding the tuning of the PD controller.
Simulated and kinematic models are working properly, but when I set the PD controller parameters and try to apply an action this happens.
@xbpeng do you have any suggestion about how to perform PD controller tuning?

cool, thats a neat looking hand! In your video, it kind of seems like there are no forces being applied to the joints? They just seems to kind of fall over. It could be that your PD gains are too small, so it's not really applying large enough forces to hold the target pose. In general, I set kd = 0.1kp, and then just tune kp until it can track a desired motion close enough. You also want to make sure the gains are not too large, else the movements become too stiff. So set them to be just large enough to do wwhat you while, while also not being too stiff.

I tried estimating the parameters for the PD controller but it didn't work, so I switched to a position controller and it's following the reference motion.
Do you have any idea why? My guess is that it's related to the fact that the hand base is not moving in the 3D space, so it's different from the humanoid scenario.


containerisation (state shuffle)

reverts init.sls
adds proxy.sls to top file
disables init.sls in top file

the idea is to easily recover if anything goes wrong during the containerisation

pillar data updated, kicking build


stm32h7 UART drain problem

Hi,
The stm32h7 does not properly drain the UARTs on close().
The console works perfectly and hides the problem, because nsh keeps the UART opened indefinitely.
However, a custom program that sends data to an UART sporadically (like the built in command echo or an application that open/write/close) shows this important issue.
echo does not even emit anything if I write less than 16 characters, which happens to be half the DMA buffer / cache line size (no idea if this is related). This is not a buffering issue as sending several small chunks in succession does not lead to the delayed emission of a large block.
in my program, cfmakeraw does not change anything.
calling tcdrain before close does nothing either.
Inserting a one second delay after a serial write ( with sleep(1) ) allows my output to be written.
Leaving the UART open in my program does not help, since the devices are closed after the program ends. This also happens in the echo command.
Disabling DMA peripherals and options entirely has no effect and I dont think it's wise since the serial driver and others parts of the stm32h7 serial code clearly assumes DMA is enabled.
I wonder if there are bugs in the stm32h7 driver, specifically related to DMA or something else, or if the issue is known, or if I missed some config options.
Any help investigating this is highly appreciated, since the serial driver is surprisingly complex and I do not know how to start debugging this dynamic issue.
It can probably be reproduced in ANY stm32h7 board with a secondary uart and the echo command.
Thanks

Hi @slorquet the H7 drivers derives from F7, so I should starting comparing the Reference Manual from both chip to spot some differences. I know a company here in Brazil that is using STM32H743 with two serials, only for console and other with a serial fingerprinter (Secugen U20) and the fingerprinter library open and close the serial all the time and it works fine. Please retest using a NuttX version from middle of 2021 and verify whether the issue exist or not on that version. Probably it was introduced with some recent modification.

It's quite related to accurate implementation details, eg if an app sends a frame and waits for an answer, this wait will allow the transmission.
My case is touchy since I found the bug by using "fire and forget", I send a frame and dont wait for any answer before closing,
Picking differences from reference manuals will be tedious. I'll try that later.
Do you recommend a particular mid-2021 release to test?
Thanks.

Hi @slorquet sorry my delay, I was really busy last week preparing the NuttX Workshop... I asked them about it and they suggest you to try reseting git nuttx repo to position commit 19beb307dd5023c2bf414dc54c3141bfc95c7251 and apps to c222043ed1ede9ef8e9e93ffed14ee9c41c4a2b1 Their project started from there!

Hi,
thank you for this. I'll have a try, but we are quite busy to make things work.
The workaround consisting of just waiting for a reply helped, I get proper communication, but the bug is still there when you broadcast data in a "fire and forget" mode.

Hi @slorquethttps://urldefense.com/v3/__https:/github.com/slorquet__;!!JmoZiZGBv3RvKRSx!7anlEGW9HhZz5Um-coXutgI3V586d1CKOjhQENBtbIhhAyNmq2t-bVyRRVjN9Hms6sSxxFgGlVcZ0byGsRQ8v7_dig$,
10.0 or 10.1 should be good candidates for this test
Best regards
Alin
From: slorquet @.>
Sent: den 20 september 2022 14:09
To: apache/incubator-nuttx @.>
Cc: Subscribed @.***>
Subject: Re: [apache/incubator-nuttx] stm32h7 UART drain problem (Issue #7138)
It's quite related to accurate implementation details, eg if an app sends a frame and waits for an answer, this wait will allow the transmission.
My case is touchy since I found the bug by using "fire and forget", I send a frame and dont wait for any answer before closing,
Picking differences from reference manuals will be tedious. I'll try that later.
Do you recommend a particular mid-2021 release to test?
Thanks.
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/apache/incubator-nuttx/issues/7138*issuecomment-1252262855__;Iw!!JmoZiZGBv3RvKRSx!8SxKNe0D3lm0Y7QcJl6NP8BAXZR_h8Pl4bPN5u4AUx2nkLQVGZWYa91G4pQ9jro1xmcG7bR18zltGu2TpLnkXCRADw$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AB32XCRXQGMMFEWZFJ553CTV7GSPDANCNFSM6AAAAAAQQ5VGEE__;!!JmoZiZGBv3RvKRSx!8SxKNe0D3lm0Y7QcJl6NP8BAXZR_h8Pl4bPN5u4AUx2nkLQVGZWYa91G4pQ9jro1xmcG7bR18zltGu2TpLnS58VwNA$.
You are receiving this because you are subscribed to this thread.Message ID<EMAIL_ADDRESS>

Hi,
I'm already on :
nsh> uname -a
NuttX 10.3.0-RC0 40144a652d
The bug has disappeared thanks to our programming tricks. I have no time
to test again.
But the echo shell command shows this behaviour easily if needed.
I think the device->close() operation incorrectly flushes the tx queue
instead of waiting for drain.
Sebastien
Le 11/10/2022 à 09:02, Alin Jerpelea a écrit :

Hi
@slorquethttps://urldefense.com/v3/__https:/github.com/slorquet__;!!JmoZiZGBv3RvKRSx!7anlEGW9HhZz5Um-coXutgI3V586d1CKOjhQENBtbIhhAyNmq2t-bVyRRVjN9Hms6sSxxFgGlVcZ0byGsRQ8v7_dig$,
10.0 or 10.1 should be good candidates for this test
Best regards
Alin
From: slorquet @.>
Sent: den 20 september 2022 14:09
To: apache/incubator-nuttx @.>
Cc: Subscribed @.***>
Subject: Re: [apache/incubator-nuttx] stm32h7 UART drain problem
(Issue #7138)
It's quite related to accurate implementation details, eg if an app
sends a frame and waits for an answer, this wait will allow the
transmission.
My case is touchy since I found the bug by using "fire and forget", I
send a frame and dont wait for any answer before closing,
Picking differences from reference manuals will be tedious. I'll try
that later.
Do you recommend a particular mid-2021 release to test?
Thanks.
—
Reply to this email directly, view it on
GitHubhttps://urldefense.com/v3/__https:/github.com/apache/incubator-nuttx/issues/7138*issuecomment-1252262855__;Iw!!JmoZiZGBv3RvKRSx!8SxKNe0D3lm0Y7QcJl6NP8BAXZR_h8Pl4bPN5u4AUx2nkLQVGZWYa91G4pQ9jro1xmcG7bR18zltGu2TpLnkXCRADw$,
or
unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AB32XCRXQGMMFEWZFJ553CTV7GSPDANCNFSM6AAAAAAQQ5VGEE__;!!JmoZiZGBv3RvKRSx!8SxKNe0D3lm0Y7QcJl6NP8BAXZR_h8Pl4bPN5u4AUx2nkLQVGZWYa91G4pQ9jro1xmcG7bR18zltGu2TpLnS58VwNA$.
You are receiving this because you are subscribed to this
thread.Message ID<EMAIL_ADDRESS>—
Reply to this email directly, view it on GitHub
https://github.com/apache/incubator-nuttx/issues/7138#issuecomment-1274180072,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAVEVNMG2OLDFHTWLCO53ILWCUGJ7ANCNFSM6AAAAAAQQ5VGEE.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi,
using the latest nuttx the problem is there, but in a subtly different use case.
It happens when exchanging several commands with my device.
The dialog is a number of exchanges, I send a command and wait for answer. I observe that frame reception is called twice in rapid succession as if the write was instantaneous, and without effect.
it seems that write() is NOT blocking waiting for the end of current data to send, and data is lost. This is similar to the original issue where the work done by write() was canceled at uart close.
the write() definitely has a buffering problem and I have no idea where. I am using tcdrain in the command transmission and no flush, the uart is opened in blocking mode.


Feature Request: Allow Templating in Configuration

Currently the entry in configuration.yaml requires you to put your static location in: (broad location used here, yes I understand I could/should use a !secret here, but meh)
weather:
  - platform: pirateweather
    api_key: !secret pirate_weather_api
    # Additional optional values:
    latitude: '39'
    longitude: '-104'
    mode: "daily"
    name: PirateWeather

This works wonderful for home use, and I would say a good 95%+ of installations. However, I personally have a outlier case, as well as I am sure those that use HA for their RV or boat, etc would like this as well. I use HA to automate things on a touring show (think theatrical touring) and we are at a different city every week, being able to template the location would be amazing so we could get the weather for what ever city we are in that week.
An example of what the entry would look like:
weather:
  - platform: pirateweather
    api_key: !secret pirate_weather_api
    # Additional optional values:
    latitude: {{states.person.<NAME>.attributes.latitude}}
    longitude: {{states.person.<NAME>.attributes.longitude}}
    mode: "daily"
    name: PirateWeather

I have found some work-arounds to this, using a rest sensor to poll the api, but this wont do as it polls the api on every update of location instead of every 15mins/configured amount of time in the sensor.
I have a home instance (HA Core on Ubuntu) and the touring one (HAOS on a Pi) so I would be more than happy and willing to test out anything you need. I am also open to any other ideas to get this working.

Hi,
Thanks for trying out this service and opening this issue! That's a really interesting use case (I love hearing how people are using this service), and definitely something that would be worth adding.
At the moment, I'm in the middle of a re-write of this entire integration. It started out as just trying to allow setup via the web GUI config flow, but in order to do that the code had to be asynchronous, which led to all sorts of complications! The good news is that I almost have this working, and it should modernize most of the code base here, The way you've described the template it should "just work", but I remain skeptical.
One quick thing that would help here is if you could try adding a single variable rest sensor, since you've already started down that road a little bit. If you check out this issue: https://github.com/alexander0042/pirate-weather-ha/issues/4#issuecomment-1129034675, I have instructions on how to create one for a single variable, Since the rest sensor supports templates (I think), it'd be worth testing that with temperature just to make sure that one part of it is updating.

sensor:
  - platform: rest
    name: PW_1Day_Precip
    scan_interval: 15
    resource: https://api.pirateweather.net/forecast/<key>/<lat>,<long>,-86400?units=ca
    value_template: "{{ float(value_json.daily.data[0].precipAccumulation) }}"
    unit_of_measurement: "cm"

Is very very similar to the rest sensor I had set up. I will add in the scan_interval: and do some testing to see if that clears up the constant api call everytime my location is reported again. Will post back later today with the results and excact code block used.
I personally find the pirate weather intergration the best one avaible, a lot of the others lack features or you have to pay for them unlike PW.

Thanks, keep me posted!
This sort of feedback is really great to hear- it really bothered me that most weather forecasts come from government agencies, but then we have to go through poorly documented cooperate APIs to access the data, so I wanted to do something to fix it. It shouldn't be such a mystery what AccuWeather means by "percent of precipitation", but it is for some reason! Along the way, the Dark Sky syntax seemed to work perfectly well, and let me leverage a ton of existing code out there (like this integration).

https://twitter.com/kleverlands/status/1338927247126827009?s=20&t=k4Ag7l-W7MY6PPG18cOdbw
- platform: rest
  resource_template: !secret pirate_rest_resource
  json_attributes_path: "$.currently"
  scan_interval: '00:15:00'
  json_attributes:
    - summary
    - temperature
    - precip_probability
    - precip_type
    - humidity
    - cloud_cover
    - nearest_storm_distance
    - precip_intensity
    - wind_speed
  name: pirateweather_api_test
  value_template: 'OK'

Didn't update on the 15min mark, as well as its missing some of the data.

Just noticed as I was typing, the attributes don't line up correctly. So for right this second, its just the update at the 15 min mark that isn't happening

Corrected the JSON Attributes and solved that "problem".

- platform: rest
  resource_template: !secret pirate_rest_resource
  json_attributes_path: "$.currently"
  scan_interval: '00:15:00'
  json_attributes:
    - summary
    - temperature
    - precipProbability
    - precipType
    - humidity
    - cloudCover
    - nearestStormDistance
    - precipIntensity
    - windSpeed
  name: pirateweather_api_test
  value_template: 'OK

Updates every 15 mins and does NOT update when the device tracker updates location so that's perfect. Now, too bad it isn't intergrated into a weather entity to use the weather cards.
The resource:
pirate_rest_resource: 'https://dev.pirateweather.net/forecast/<API>/{{states.person.tristan_van_tine.attributes.latitude}},{{states.person.tristan_van_tine.attributes.longitude

Been playing around and I believe that using the rest calls just isn't going to work as nicely. Having a hard time getting forecast to show in a weather card.
So far I have this for the weather.dynamic_weather sensor:
weather:
  - platform: template
    name: "Dynamic Weather"
    unique_id:<PHONE_NUMBER>93
    # attribution: "Powered by PirateWeather"
    condition_template: "{{ state_attr('sensor.pirateweather_api_test', 'summary') }}"
    temperature_template: "{{ state_attr('sensor.pirateweather_api_test', 'temperature') | float }}"
    humidity_template: "{{ state_attr('sensor.pirateweather_api_test', 'humidity') | float }}"
    pressure_template: "{{ state_attr('sensor.pirateweather_api_test', 'pressure') }}"
    wind_speed_template: "{{ state_attr('sensor.pirateweather_api_test', 'windSpeed') }}"
    ozone_template: "{{ state_attr('sensor.pirateweather_api_test', 'ozone') }}"
    visibility_template: "{{ state_attr('sensor.pirateweather_api_test', 'visibility') }}"
    forecast_template: "{{ state_attr('pirateweather_api_forcast', 'data') }}"

Which all pulls in correctly, other than forecast.
I have this working great for current weather conditions:
- platform: rest
  resource_template: !secret pirate_rest_resource
  name: pirateweather_api_test
  json_attributes_path: "$.currently"
  scan_interval: '00:15:00'
  json_attributes:
    - summary
    - temperature
    - precipProbability
    - precipType
    - humidity
    - cloudCover
    - nearestStormDistance
    - precipIntensity
    - windSpeed
    - visibility
    - ozone
    - windBearing
    - pressure
  value_template: 'OK'

I tried to combine the call using the below, but it didnt work for the forecast once again:
rest:
- scan_interval: 900
  resource_template: !secret pirate_rest_resource
  sensor:
    - name: "pirateweather_api_current"
      json_attributes_path: "$.currently"
      value_template: "OK"
      json_attributes:
        - summary
        - temperature
        - precipProbability
        - precipType
        - humidity
        - cloudCover
        - nearestStormDistance
        - precipIntensity
        - windSpeed
        - visibility
        - ozone
        - windBearing
        - pressure
    - name: "pirateweather_api_forcast"
      json_attributes_path: "$.daily"
      value_template: "OK"
      json_attributes:
        - data

Any new info?

Thanks for following up here! I haven't quite gotten the update integration working yet, but it's at the top of my list and shouldn't be too much longer. If you want to follow along with the progress, I've made a new branch that will eventually get merged in with the changes. It's super unstable at the moment, but gives an idea of how everything will fit together with the config flow/ async setup, and should addressing the templateing issue at the same time!

I'm also interested in dynamic location weather reports. I love Pirate Weather, but can't figure out if they config supports dynamically updating location. I have a gps sensor updating Home Assistant core location and a device tracker that are available but it seems Pirate Weather location config is static and can only be updated manually. Is there a method for dynamically updating Pirate Weather location?

Same here would love to be able to do dynamic location updates! Thanks for your work on this.

As part of the fundamental setup of integration, I don't think possible to change the location dynamically. The issue is that it uses a weather data coordinator that is based on the lat-lon of the setup location, and it sticks with that.
However, some of the comments above get is to the same place! You can combine the "rest" platform with a weather template to produce the card manually. As a first pass, I have something like this:

weather:
  - platform: template
    name: "Dynamic Weather"
    # attribution: "Powered by PirateWeather"
    condition_template: "{{ state_attr('sensor.PW_Template_Currently', 'summary') }}"
    temperature_template: "{{ state_attr('sensor.PW_Template_Currently', 'temperature') | float }}"
    humidity_template: "{{ state_attr('sensor.PW_Template_Currently', 'humidity') | float }}"
    pressure_template: "{{ state_attr('sensor.PW_Template_Currently', 'pressure') }}"
    wind_speed_template: "{{ state_attr('sensor.PW_Template_Currently', 'windSpeed') }}"
    ozone_template: "{{ state_attr('sensor.PW_Template_Currently', 'ozone') }}"
    visibility_template: "{{ state_attr('sensor.PW_Template_Currently', 'visibility') }}"
    forecast_template: >-
      [
        {
          {% set dat = now() + timedelta( days = 0 ) %}
          "datetime": "{{ dat.strftime("%Y-%m-%dT00:00:00Z") }}",
          "temperature": "{{ state_attr('sensor.PW_Template_Daily0', 'temperatureHigh') | float }}",
          "templow": "{{ state_attr('sensor.PW_Template_Daily0', 'temperatureLow') | float }}",
          "precipitation": "{{ state_attr('sensor.PW_Template_Daily0', 'precipAccumulation') | float }}",
          "condition":  "{{ state_attr('sensor.PW_Template_Daily0', 'summary') }}",
        },
        {
          {% set dat = now() + timedelta( days = 1 ) %}
          "datetime": "{{ dat.strftime("%Y-%m-%dT00:00:00Z") }}",
          "temperature": "{{ state_attr('sensor.PW_Template_Daily1', 'temperatureHigh') | float }}",
          "templow": "{{ state_attr('sensor.PW_Template_Daily1', 'temperatureLow') | float }}",
          "precipitation": "{{ state_attr('sensor.PW_Template_Daily1', 'precipAccumulation') | float }}",
          "condition":  "{{ state_attr('sensor.PW_Template_Daily1', 'summary') }}",
        },
        {
          {% set dat = now() + timedelta( days = 2 ) %}
          "datetime": "{{ dat.strftime("%Y-%m-%dT00:00:00Z") }}",
          "temperature": "{{ state_attr('sensor.PW_Template_Daily2', 'temperatureHigh') | float }}",
          "templow": "{{ state_attr('sensor.PW_Template_Daily2', 'temperatureLow') | float }}",
          "precipitation": "{{ state_attr('sensor.PW_Template_Daily2', 'precipAccumulation') | float }}",
          "condition":  "{{ state_attr('sensor.PW_Template_Daily2', 'summary') }}",
        }
      ]

rest:
  resource: 'https://api.pirateweather.net/forecast/<PW_API_KEY>/45.4215,-75.697'
  scan_interval: 60
  sensor:
    - name: "PW_Template_Currently"
      json_attributes_path: "$.currently"
      value_template: "OK"
      json_attributes:
        - summary
        - temperature
        - precipProbability
        - precipType
        - humidity
        - cloudCover
        - nearestStormDistance
        - precipIntensity
        - windSpeed
        - visibility
        - ozone
        - windBearing
        - pressure
    - name: "PW_Template_Daily0"
      json_attributes_path: "$.daily.data.[0]"
      value_template: "OK"
      json_attributes:
        - summary
        - temperatureHigh
        - temperatureLow
        - precipAccumulation
    - name: "PW_Template_Daily1"
      json_attributes_path: "$.daily.data.[1]"
      value_template: "OK"
      json_attributes:
        - summary
        - temperatureHigh
        - temperatureLow
        - precipAccumulation
    - name: "PW_Template_Daily2"
      json_attributes_path: "$.daily.data.[2]"
      value_template: "OK"
      json_attributes:
        - summary
        - temperatureHigh
        - temperatureLow
        - precipAccumulation

I'll test this a bit more and see if I can't get the template into the location and flesh out the weather card a bit, but this absolutely should work! The only downside is that it makes we wonder if I should have just done this instead of building a whole integration...

@alexander0042 that's a great solution! I just implemented this with the lat/lon from zone.home (which is updated by GPS sensor via an automation and homeassistant.set_location) for my Van implementation. So, the weather updates as we move from place to place!
Wondering if there is a sensible way to implement this for an hourly forcast for the next 24 hrs?
FWIW: I found I had to remove the "Z" from the forecast_template datetime string for the forecast to show the days correctly as I am (currently) UTC -7
Nice work!

NWS had an update and saw this

...coordinates or you can get dynamic location alerts by configuring the integration to use a device_tracker entity from HA as long as that device tracker provides GPS coordinates.

Perhaps there is something that could help you out in getting a cleaner implementation
https://github.com/finity69x2/nws_alerts

Is this something we are still looking to properly implement, or are we satisfied with the work arounds overall? Plus, will these still work with the HA changes needed for PirateWeather to continue working?

Thanks @alexander0042 for the starting point.  I think I got it cleaned up quite a bit and got hourly working as well:
setup pirate weather dynamic location
weather:

platform: template
name: "Dynamic Weather Template"
unique_id: "pw_template"
attribution_template: "Powered by Pirate Weather"
temperature_template: "{{ state_attr('sensor.PW_Template_Currently', 'temperature') | int }}"
temperature_unit: "°F"
humidity_template: "{{ state_attr('sensor.PW_Template_Currently', 'humidity')*100 | int }}"
pressure_template: "{{ state_attr('sensor.PW_Template_Currently', 'pressure') }}"
pressure_unit: "hPa"
wind_speed_template: "{{ state_attr('sensor.PW_Template_Currently', 'windSpeed') | int}}"
wind_speed_unit: "mph"
ozone_template: "{{ state_attr('sensor.PW_Template_Currently', 'ozone') }}"
visibility_template: "{{ state_attr('sensor.PW_Template_Currently', 'visibility') }}"
visibility_unit: "mi"
precipitation_unit: "in"
condition_template: >-
{% if state_attr('sensor.PW_Template_Currently', 'icon') == "clear-night" %}
clear-night
{% elif state_attr('sensor.PW_Template_Currently', 'icon') == "clear-day" %}
sunny
{% elif state_attr('sensor.PW_Template_Currently', 'icon') == "cloudy" %}
cloudy
{% elif state_attr('sensor.PW_Template_Currently', 'icon') == "fog" %}
fog
{% elif state_attr('sensor.PW_Template_Currently', 'icon') == "partly-cloudy-day" %}
partlycloudy
{% elif state_attr('sensor.PW_Template_Currently', 'icon') == "partly-cloudy-night" %}
partlycloudy
{% elif state_attr('sensor.PW_Template_Currently', 'icon') == "rain" %}
rainy
{% elif state_attr('sensor.PW_Template_Currently', 'icon') == "snow" %}
snowy
{% elif state_attr('sensor.PW_Template_Currently', 'icon') == "sleet" %}
snowy
{% elif state_attr('sensor.PW_Template_Currently', 'icon') == "wind" %}
windy
{% endif %}
forecast_daily_template: >-
{%set return=namespace(data=[])%}
{%for datapoint in state_attr('sensor.forecast_daily', 'data')%}
{% set condition=datapoint.icon%}
{% if datapoint.icon == "clear-day" %}
{%set condition="sunny"%}
{% elif datapoint.icon == "partly-cloudy-day" or datapoint.icon == "partly-cloudy-night"%}
{%set condition="partlycloudy"%}
{% elif datapoint.icon == "rain" %}
{%set condition="rainy"%}
{% elif datapoint.icon == "snow" or datapoint.icon=="sleet"%}
{%set condition="snowy"%}
{% elif datapoint.icon == "wind" %}
{%set condition="windy"%}
{% endif %}
{%set returnPoint=[{'datetime':as_local(as_datetime(datapoint.time)).strftime("%Y-%m-%dT%H:%M:%S")
,'temperature':datapoint.temperatureHigh, 'templow':datapoint.temperatureLow, 'condition':condition,'precipitation':datapoint.precipAccumulation
, 'wind_bearing':datapoint.windBearing, 'wind_speed':datapoint.windSpeed}]%}
{% set return.data=return.data+returnPoint%}
{% endfor%}
{{return.data}}
forecast_hourly_template: >-
{%set return=namespace(data=[])%}
{%for datapoint in state_attr('sensor.forecast_hourly', 'data')%}
{% set condition=datapoint.icon%}
{% if datapoint.icon == "clear-day" %}
{%set condition="sunny"%}
{% elif datapoint.icon == "partly-cloudy-day" or datapoint.icon == "partly-cloudy-night"%}
{%set condition="partlycloudy"%}
{% elif datapoint.icon == "rain" %}
{%set condition="rainy"%}
{% elif datapoint.icon == "snow" or datapoint.icon=="sleet"%}
{%set condition="snowy"%}
{% elif datapoint.icon == "wind" %}
{%set condition="windy"%}
{% endif %}
{%set returnPoint=[{'datetime':as_local(as_datetime(datapoint.time)).strftime("%Y-%m-%dT%H:%M:%S")
,'temperature':datapoint.temperature,'condition':condition,'precipitation':datapoint.precipAccumulation
, 'wind_bearing':datapoint.windBearing, 'wind_speed':datapoint.windSpeed}]%}
{% set return.data=return.data+returnPoint%}
{% endfor%}
{{return.data}}

rest:
resource_template: https://api.pirateweather.net/forecast//{{ state_attr('sensor.gps', 'latitude') }},{{ state_attr('sensor.gps', 'longitude') }}?units=us&exclude=minutely&exclude=alerts&extend=hourly&extend=daily
scan_interval: 300
sensor:
- name: "PW_Template_Currently"
json_attributes_path: "$.currently"
value_template: "OK"
json_attributes:
- summary
- temperature
- precipProbability
- precipType
- humidity
- cloudCover
- nearestStormDistance
- precipIntensity
- windSpeed
- visibility
- ozone
- windBearing
- pressure
- icon
- time
- name: "Forecast Hourly"
json_attributes_path: "$.hourly"
value_template: "OK"
json_attributes:
- summary
- icon
- data
- name: "Forecast Daily"
json_attributes_path: "$.daily"
value_template: "OK"
json_attributes:
- summary
- icon
- data

@breel007 - any chance you can post using code blocks - like so

@mikegoubeaux good call, I think I fixed it.

I'm not sure this works any longer since HA has moved forecasts to be retrievable via the weather.get_forecast service. I think the original request on this issue would provide the best support for out of the box HA weather functionality in the frontend. Is it not possible implement the use of a template in place of the literal latitude and longitude if PirateWeather is set up via YAML (or even better during onboarding when setting up the integration via the UI)? If not a template, then at least a sensor like sensor.home_latitude?

I noticed your other post in #149, but figured it was easier to just reply here. I agree that it is a really irritating limitation, but as far as I've puzzled it out,  The (very clever!) approach from @breel007 doesn't rely on the integration at all, so really should template correctly. Is there a specific aspect of it that isn't working for you?
As far as a more HA specific solution, I was poking through some other integrations and while I don't see any that change the location of a Data Update Coordinator, there is one where the scan interval is changed, so I don't know why it wouldn't be possible? This might be a good question for the discord, just to see if it's even possible. The logic of it would be easy enough- if someone defines a latitude and longitude, use that, otherwise use the GPS data.

Can the direct web service solution work with a Lovelace card to display current conditions as well as forecast data? I was able to get it set up, and did get data into HA through the API, but was not able to get to forecast data in a weather card. Could be I did something wrong as the setup is not trivial.

By the way - this is an awesome thing you've done with the API. Tons of data, and all well documented. Nice work!

As part of the fundamental setup of integration, I don't think possible to change the location dynamically. The issue is that it uses a weather data coordinator that is based on the lat-lon of the setup location, and it sticks with that.
However, some of the comments above get is to the same place! You can combine the "rest" platform with a weather template to produce the card manually. As a first pass, I have something like this:

weather:
  - platform: template
    name: "Dynamic Weather"
    # attribution: "Powered by PirateWeather"
    condition_template: "{{ state_attr('sensor.PW_Template_Currently', 'summary') }}"
    temperature_template: "{{ state_attr('sensor.PW_Template_Currently', 'temperature') | float }}"
    humidity_template: "{{ state_attr('sensor.PW_Template_Currently', 'humidity') | float }}"
    pressure_template: "{{ state_attr('sensor.PW_Template_Currently', 'pressure') }}"
    wind_speed_template: "{{ state_attr('sensor.PW_Template_Currently', 'windSpeed') }}"
    ozone_template: "{{ state_attr('sensor.PW_Template_Currently', 'ozone') }}"
    visibility_template: "{{ state_attr('sensor.PW_Template_Currently', 'visibility') }}"
    forecast_template: >-
      [
        {
          {% set dat = now() + timedelta( days = 0 ) %}
          "datetime": "{{ dat.strftime("%Y-%m-%dT00:00:00Z") }}",
          "temperature": "{{ state_attr('sensor.PW_Template_Daily0', 'temperatureHigh') | float }}",
          "templow": "{{ state_attr('sensor.PW_Template_Daily0', 'temperatureLow') | float }}",
          "precipitation": "{{ state_attr('sensor.PW_Template_Daily0', 'precipAccumulation') | float }}",
          "condition":  "{{ state_attr('sensor.PW_Template_Daily0', 'summary') }}",
        },
        {
          {% set dat = now() + timedelta( days = 1 ) %}
          "datetime": "{{ dat.strftime("%Y-%m-%dT00:00:00Z") }}",
          "temperature": "{{ state_attr('sensor.PW_Template_Daily1', 'temperatureHigh') | float }}",
          "templow": "{{ state_attr('sensor.PW_Template_Daily1', 'temperatureLow') | float }}",
          "precipitation": "{{ state_attr('sensor.PW_Template_Daily1', 'precipAccumulation') | float }}",
          "condition":  "{{ state_attr('sensor.PW_Template_Daily1', 'summary') }}",
        },
        {
          {% set dat = now() + timedelta( days = 2 ) %}
          "datetime": "{{ dat.strftime("%Y-%m-%dT00:00:00Z") }}",
          "temperature": "{{ state_attr('sensor.PW_Template_Daily2', 'temperatureHigh') | float }}",
          "templow": "{{ state_attr('sensor.PW_Template_Daily2', 'temperatureLow') | float }}",
          "precipitation": "{{ state_attr('sensor.PW_Template_Daily2', 'precipAccumulation') | float }}",
          "condition":  "{{ state_attr('sensor.PW_Template_Daily2', 'summary') }}",
        }
      ]

rest:
  resource: 'https://api.pirateweather.net/forecast/<PW_API_KEY>/45.4215,-75.697'
  scan_interval: 60
  sensor:
    - name: "PW_Template_Currently"
      json_attributes_path: "$.currently"
      value_template: "OK"
      json_attributes:
        - summary
        - temperature
        - precipProbability
        - precipType
        - humidity
        - cloudCover
        - nearestStormDistance
        - precipIntensity
        - windSpeed
        - visibility
        - ozone
        - windBearing
        - pressure
    - name: "PW_Template_Daily0"
      json_attributes_path: "$.daily.data.[0]"
      value_template: "OK"
      json_attributes:
        - summary
        - temperatureHigh
        - temperatureLow
        - precipAccumulation
    - name: "PW_Template_Daily1"
      json_attributes_path: "$.daily.data.[1]"
      value_template: "OK"
      json_attributes:
        - summary
        - temperatureHigh
        - temperatureLow
        - precipAccumulation
    - name: "PW_Template_Daily2"
      json_attributes_path: "$.daily.data.[2]"
      value_template: "OK"
      json_attributes:
        - summary
        - temperatureHigh
        - temperatureLow
        - precipAccumulation

I'll test this a bit more and see if I can't get the template into the location and flesh out the weather card a bit, but this absolutely should work! The only downside is that it makes we wonder if I should have just done this instead of building a whole integration...

Is this still working? I tried to copy paste this into my config, but it doesnt work :( The Entities are not being created from the template.

Hmm, no reason it shouldn't work? Are you seeing an error in your logs when you reload. or just nothing.
I double checked it on my instance using this yaml, which seems to throw the occasional warning, but is otherwise working fine:
weather:
  - platform: template
    name: "Dynamic Weather Template"
    unique_id: "pw_template"
    attribution_template: "Powered by Pirate Weather"
    temperature_template: "{{ state_attr('sensor.PW_Template_Currently', 'temperature')}}"
    temperature_unit: "°F"
    humidity_template: "{{ state_attr('sensor.PW_Template_Currently', 'humidity') }}"
    pressure_template: "{{ state_attr('sensor.PW_Template_Currently', 'pressure') }}"
    pressure_unit: "hPa"
    wind_speed_template: "{{ state_attr('sensor.PW_Template_Currently', 'windSpeed')}}"
    wind_speed_unit: "mph"
    ozone_template: "{{ state_attr('sensor.PW_Template_Currently', 'ozone') }}"
    visibility_template: "{{ state_attr('sensor.PW_Template_Currently', 'visibility') }}"
    visibility_unit: "mi"
    precipitation_unit: "in"
    condition_template: >-
      {% if state_attr('sensor.PW_Template_Currently', 'icon') == "clear-night" %}
        clear-night
      {% elif state_attr('sensor.PW_Template_Currently', 'icon') == "clear-day" %}
        sunny
      {% elif state_attr('sensor.PW_Template_Currently', 'icon') == "cloudy" %}
        cloudy
      {% elif state_attr('sensor.PW_Template_Currently', 'icon') == "fog" %}
        fog
      {% elif state_attr('sensor.PW_Template_Currently', 'icon') == "partly-cloudy-day" %}
        partlycloudy
      {% elif state_attr('sensor.PW_Template_Currently', 'icon') == "partly-cloudy-night" %}
        partlycloudy
      {% elif state_attr('sensor.PW_Template_Currently', 'icon') == "rain" %}
        rainy
      {% elif state_attr('sensor.PW_Template_Currently', 'icon') == "snow" %}
        snowy
      {% elif state_attr('sensor.PW_Template_Currently', 'icon') == "sleet" %}
        snowy
      {% elif state_attr('sensor.PW_Template_Currently', 'icon') == "wind" %}
        windy
      {% endif %}
    forecast_daily_template: >-
      {%set return=namespace(data=[])%}
      {%for datapoint in state_attr('sensor.forecast_daily', 'data')%}
      {% set condition=datapoint.icon%}
      {% if datapoint.icon == "clear-day" %}
      {%set condition="sunny"%}
      {% elif datapoint.icon == "partly-cloudy-day" or datapoint.icon == "partly-cloudy-night"%}
      {%set condition="partlycloudy"%}
      {% elif datapoint.icon == "rain" %}
      {%set condition="rainy"%}
      {% elif datapoint.icon == "snow" or datapoint.icon=="sleet"%}
      {%set condition="snowy"%}
      {% elif datapoint.icon == "wind" %}
      {%set condition="windy"%}
      {% endif %}
      {%set returnPoint=[{'datetime':as_local(as_datetime(datapoint.time)).strftime("%Y-%m-%dT%H:%M:%S")
      ,'temperature':datapoint.temperatureHigh, 'templow':datapoint.temperatureLow, 'condition':condition,'precipitation':datapoint.precipAccumulation
      , 'wind_bearing':datapoint.windBearing, 'wind_speed':datapoint.windSpeed}]%}
      {% set return.data=return.data+returnPoint%}
      {% endfor%}
      {{return.data}}
    forecast_hourly_template: >-
      {%set return=namespace(data=[])%}
      {%for datapoint in state_attr('sensor.forecast_hourly', 'data')%}
      {% set condition=datapoint.icon%}
      {% if datapoint.icon == "clear-day" %}
      {%set condition="sunny"%}
      {% elif datapoint.icon == "partly-cloudy-day" or datapoint.icon == "partly-cloudy-night"%}
      {%set condition="partlycloudy"%}
      {% elif datapoint.icon == "rain" %}
      {%set condition="rainy"%}
      {% elif datapoint.icon == "snow" or datapoint.icon=="sleet"%}
      {%set condition="snowy"%}
      {% elif datapoint.icon == "wind" %}
      {%set condition="windy"%}
      {% endif %}
      {%set returnPoint=[{'datetime':as_local(as_datetime(datapoint.time)).strftime("%Y-%m-%dT%H:%M:%S")
      ,'temperature':datapoint.temperature,'condition':condition,'precipitation':datapoint.precipAccumulation
      , 'wind_bearing':datapoint.windBearing, 'wind_speed':datapoint.windSpeed}]%}
      {% set return.data=return.data+returnPoint%}
      {% endfor%}
      {{return.data}}

rest:
  - resource_template: https://api.pirateweather.net/forecast/<APIKEY>/<LAT>,<LON>?units=us&exclude=minutely
    scan_interval: 300
    sensor:
    - name: "PW_Template_Currently"
      json_attributes_path: "$.currently"
      value_template: "OK"
      json_attributes:
        - summary
        - temperature
        - precipProbability
        - precipType
        - humidity
        - cloudCover
        - nearestStormDistance
        - precipIntensity
        - windSpeed
        - visibility
        - ozone
        - windBearing
        - pressure
        - icon
        - time
    - name: "Forecast Hourly"
      json_attributes_path: "$.hourly"
      value_template: "OK"
      json_attributes:
        - summary
        - icon
        - data
    - name: "Forecast Daily"
      json_attributes_path: "$.daily"
      value_template: "OK"
      json_attributes:
        - summary
        - icon
        - data

Also, the temperature is showing in Fahrenheit instead of Celsius (despite
the C icon) . Do you know how to fix this?
On Tue, 18 Jun 2024 at 21:36, Aaron vd Aker @.***> wrote:

I got the error message as i did not put this line of codes in the
configuration yaml file. Is there a way to split this from the
configuration.yaml file? Thanks for the help!
On Mon, 17 Jun 2024 at 18:12, Alexander Rey @.***>
wrote:

Hmm, no reason it shouldn't work? Are you seeing an error in your logs
when you reload. or just nothing.

You are receiving this because you commented.Message ID:
@.***>

Yes, you can create a new "template.yaml" with the above code in the same folder and add this line to your configuration.yaml:
template: !include templates.yaml1
Re: the units, you need to change this line to be units=si':   - resource_template: https://api.pirateweather.net/forecast//,?units=us&exclude=minutely`

Thanks, it worked. Still have a problem: The temperatures are way off (i
live in the netherlands)
[image: image.png]
How can this be?
On Wed, 19 Jun 2024 at 15:18, Alexander Rey @.***>
wrote:

Yes, you can create a new "template.yaml" with the above code in the same
folder and add this line to your configuration.yaml:
template: !include templates.yaml1
Re: the units, you need to change this line to be `units=si':

resource_template: https://api.pirateweather.net/forecast//,?units=us&exclude=minutely

—
Reply to this email directly, view it on GitHub
https://github.com/Pirate-Weather/pirate-weather-ha/issues/46#issuecomment-2178702324,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AYS5HXL2EZCV6L2RKSTTGADZIGAK3AVCNFSM5WT2ZIJKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJXHA3TAMRTGI2A
.
You are receiving this because you commented.Message ID:
@.***>

Sorry- I can't see the picture for some reason. Can you try uploading the picture again, or elaborating on the difference?

Sorry- I can't see the picture for some reason. Can you try uploading the picture again, or elaborating on the difference?
First picture is incorrect, 2nd is correct. Looks like a formatting issue i think.

Good catch! Thanks for helping to troubleshoot here

I've updated the HA FAQ section to remove the | int on the temperature section. I'm going to close this for now but feel free to create a new issue or reply to this one if more issues pop up.


Square-Ten Tree

https://www.hackerrank.com/challenges/square-ten-tree/problem

Can I do it in cpp

i ll do this in python

@Aarushi11H Resolve previous ones first

https://github.com/adityabisoi/ds-algo-solutions/pull/240
I added code in cpp

@vikhyatsingh123 Please update your PR. This program is open for JAVA


Loading During Submit

When the maintenance form is submitted on the /user-frontend side, the server takes quite a while to respond. Might consider adding a loading indicator here.

Added a loading screen!


Added additional button Add Current Page to https://backpack.tf/pricelist

Additional tests may be needed

Forgot about this PR, merging it now


Dependencies arent working

Hey, @sephiroth74, Im trying to download 2.0.4 or 2.0.5 dependencies and it seems they are unavailable in JitPack.io

I did not try downloading, but the library is found when using gradle with maven { url 'https://jitpack.io' }


Add fellingdater

Insert URLs to the project here:
https://github.com/hanecakr/fellingdater

[x] The projects is active, documented, open source licensed, shows usage from external parties and is directly targeting environmental sustainability. Find more details in the Contribution Guide.

All issues labeled as 'Good First Issue' of the project listed on OpenSustain.tech will be visible on ClimateTriage.com. This is a great way to welcome new community members to your project.

@hanecakr @koenedaele


Installation fails if you follow the instructions

Describe the bug
When I get to the following step, this is the error i get:
PS C:\Users\nicho> dotnet interactive jupyter install
The kernelspec path C:\Users\nicho\AppData\Roaming\jupyter\kernels does not exist.
Failed to install ".NET (C#)" kernel.
The kernelspec path C:\Users\nicho\AppData\Roaming\jupyter\kernels does not exist.
Failed to install ".NET (F#)" kernel.
The kernelspec path C:\Users\nicho\AppData\Roaming\jupyter\kernels does not exist.
Failed to install ".NET (PowerShell)" kernel.

PS C:\Users\nicho> dotnet --info
.NET SDK (reflecting any global.json):
 Version:   5.0.100-preview.4.20258.7
 Commit:    65f0fc2cad

Runtime Environment:
 OS Version:  10.0.19041
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\5.0.100-preview.4.20258.7\

Host (useful for support):
  Version: 5.0.0-preview.5.20278.1

.NET SDKs installed:
  3.1.400-preview-015151 [C:\Program Files\dotnet\sdk]
  5.0.100-preview.4.20258.7 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.All 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.0-preview.4.20257.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.0-preview.4.20251.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.0-preview.5.20278.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.0-preview.4.20251.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.0-preview.5.20278.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

(base) C:\Users\nicho>conda --version
conda 4.8.3

Please complete the following:
Which version of .NET Interactive are you using? There are a few ways to find this out:

In a notebook, run the #!about magic command.
At the command line, run dotnet interactive --version.
In VS Code, run "Report installed version for .NET Interactive` and copy the version number from the status popup.

OS

[X] Windows 10
[ ] macOS
[ ] Linux (Please specify distro)
[ ] iOS
[ ] Android

Browser

[ ] Chrome
[ ] Edge
[ ] Firefox
[ ] Safari

Frontend

[X] Jupyter Notebook
[ ] Jupyter Lab
[ ] nteract
[ ] Visual Studio Code
[ ] Other (please specify)

Screenshots
If applicable, add screenshots to help explain your problem.

It's caused by confusion switching back and forth between consoles. Trying to clarify things in the referenced pull request: https://github.com/dotnet/interactive/pull/638


Generate S3 and RabbitMQ creds and perms where possible

plus inject some other creds from their sources of truth.

[x] test RabbitMQ bits against a staging environment
[x] verify S3 policies are sufficient for build caching

@emdantrim r?

Since we're not going to be using the local Docker registry module modules/aws_docker_registry/, please add a quick README.md that clarifies it's not use right now, but here for when we need it. Thanks

:taco: :tada:


Update main.cpp

Added user and admin menu different.

Why have you commented out 313 lines of code?

The original yrncollo banking management system and the new system had different console friendly displays. So, just tried to maintain it here itself so there is no need to revert to the original code if the new one doesn't look formal.
I just attempted the original console display of yrncollo management system is in use as it seemed more console friendly.
Reagrds,
Disha Modi
Thank you.

The original yrncollo banking management system and the new system had different console friendly displays. So, just tried to maintain it here itself so there is no need to revert to the original code if the new one doesn't look formal. I just attempted the original console display of yrncollo management system is in use as it seemed more console friendly.
Reagrds, Disha Modi Thank you.

Aaah smooth I now get it... So you were proposing we shift... Right?

Yeahhh!

Hey @yrncollo, should we start working on other systems as well simultaneously or we should first finish one, and then only we should move to another?


About multiple threads binding to one port using SO_REUESPORT

I want to use multiple threads to process the connections on the server side, so I try to use SO_REUSEPORT and bind multiple times like this:
ChannelHandler quicServerCodec = new QuicServerCodecBuilder()
                            .activeMigration(true)
                            .build();
EventLoopGroup group = new EpollEventLoopGroup();
Bootstrap bs = new Bootstrap();
bs.group(group)
        .channel(EpollDatagramChannel.class)
        .handler(quicServerCodec)
        .option(EpollChannelOption.SO_REUSEPORT, true);

try {
    for (int i = 0; i < NettyRuntime.availableProcessors()*2; i++) {
        bs.bind(port).await();
    }
} catch (InterruptedException e){

}

It seems like multiple threads will use one QuicheQuicServerCodec. Is QuicheQuicServerCodec sharable and can be added to multiple channels ?
If QuicheQuicServerCodec is sharable, will it cause thread-safe problems when processing the connectionIdToChannel map?
If QuicheQuicServerCodec is not sharable, how to attach different  QuicheQuicServerCodec to different EpollDatagramChannel(or thread)? And what happens when a message is received on the port? If I enable active migration, will it be routed to the correct EpollDatagramChannel and processed by the correct  QuicheQuicServerCodec, which holds the quic connection information by connectionIdToChannel map?

Hi there,

It's not sharable you will need to create a new instance for each Channel. You can do so by using a ChannelInitializer and create the codec in the initChannel method.
its not sharable
you will need to do this via something like ebpf if you want to support migrations


Some docstring cleanup

A couple of additional docstring suggestions pulled from this comment in PR #580:

I think this comment for rebuild_auth() can be put into the method docstring instead
there's an out-dated and unnecessary type annotation here that can be removed
I think Google docstring style prefers a spacing between summary line and expanded description (see examples here). Here are the places I found that look like a line spacing could be added:

in refresh_tokens()
in get_s3_credentials()
in the two hits methods: hits() and hits()
in provider()
in set_requests_session()
in get_fsspec_session()
in get_requests_session()

since we're adding "Placeholder" for the subject line in docstrings in other places, perhaps we should also add them for:

the two public functions in daac.py
the one public function in kerchunk.py
make_instance()

Thanks @danielfromearth !

@danielfromearth Hey Daniel, I had some doubts regarding this issue. First of all, on removing the type annotations means we'll have to remove all the instances in the code related to isn't that the case? I just wanted some clarity over this.  Also the kerchunk.py has two public functions and in the issue description  you had suggested that we'll need to add the "Placeholder" to only one public function in there. So which one is it? It will help a lot if you chime in.

I think what we're looking for is on this line:
https://github.com/Sherwin-14/earthaccess/blob/f8901ade489c8c211658ec13a5757ce1b6259ff9/earthaccess/auth.py#L96
there's a docstring type annotation indicating the type of system is Env. In Python code without real type annotations, this can be useful, but since we have real type annotations, we don't need that. It's also incorrect, the real type of system is Optional[System]. So we're just looking to remove the docstring type annotation.
Personally, I think we should not add Placeholder anywhere else. We used that solely to enable docstrings with metadata but without a subject line to not be borked by the code formatter, since adding a subject line was not in scope of that PR.


Cannot vary coordination number (C.N.)

Hi @newville
I am a Ph.D. student from Temple University, I recently started using larch after watching your demo videos on youtube.
As shown in your videos, to vary C.N. we have to introduce "C.N." as the new variable and fix s02 in "Amplitube = C.N. * S02".
I tried multiple times to fit the data by varying C.N. but the "output C.N." of the fit is always the "input C.N." (e.g. IrO2, if I input "1" as the variable C.N. for Ir-O or Ir-Ir it will show "1" after fitting, which is incorrect). Rather than varying C.N., it will try to vary sigma2 or e0 to achieve a good fit.
I also tried to replicate FeO fitting (as shown in your youtube video) but I am unable to vary the coordination number.
Reference youtube video "Larch for XAFS Analysis 10: Feff Fitting #2, iron oxide, https://www.youtube.com/watch?v=fSMZ31uBZ98&list=PLgNIl_xwV_vK4V6CmrsEsahNCAsjt8_Be&index=12".
Thanks,
Uddipana

@UddipanaK Sorry for the trouble.
I believe this is fixed in the current development version.  I'm hoping to release this as 0.9.62 later today. If you are willing to try that, on windows, you should be able to open an "Anaconda Prompt (xraylarch)" terminal and run:
   python -m pip install https://millenia.cars.aps.anl.gov/xraylarch/downloads/xraylarch-latest-py3-none-any.whl

I think that should fix the problem.

Well, and also 'C.N.' will not be a valid parameter name.  You can use 'N' or 'CN', but the name cannot have a dot in the name...

Thank you.


Install .tpk file on Samsung TV using a pendrive

I want to install a .tpk file on Samsung TV using a pendrive, but when I open the pendrive on the Samsung TV, the only .tpk file doesn't show up. How can i install it? If anyone has any solution, please help me.
I am developing this App using Flutter for Tizen OS.

I don't have an answer to your question but I know a hacky way to update an already installed application from USB if you managed to install it for the first time. That's not what you're looking for, right?

Yes, but I want to know a hacky way to update an already-installed application from USB. How to do it.

Okay please email me.


fix: select correct version of fileglobbing depending on .net target framework

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.22%. Comparing base (5c372c4) to head (a89b6c4).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #147   +/-   ##
=======================================
  Coverage   81.22%   81.22%
=======================================
  Files          83       83
  Lines        1257     1257
  Branches      206      206
=======================================
  Hits         1021     1021
  Misses        167      167
  Partials       69       69

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

🚨 Try these New Features:

Flaky Tests Detection - Detect and resolve failed and flaky tests


Create PULL_REQUEST_TEMPLATE.md

/cc @McNopper @emackey

 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.

Merging, as there have been other PRs opened since this one.


KeyDown/KeyUp map to unknown and call event

Summary of the PR
Instead of not calling KeyDown when the key is not found, call it with Key.Unknown and the platform specific scan code.
Related issues, Discord discussions, or proposals
Issue 846
Further Comments
Perhaps as a next step the scan codes between GLFW and SDL should be made the same.

@ThomasMiz Seems like the CI Build failed on installing workload:
Workload installation failed: Workload not found: android-aot.

How frustrating, as if they just make breaking changes like that! We can just merge anyway, I’ll do that in a bit as this isn’t allowed by default.

@Perksey Thanks I appreciate it!


fix TS_ISO8601, TS_MILLIS handling in NewRawAndTsFromJSON

zson.NewRawAndTsFromJSON does not convert Zeek JSON::TS_ISO8601
timestamps to the standard Zeek format, and it does not handle
JSON:TS_MILLIS timestamps correctly.  Fix both issues.

@nwt i needed this branch for other work and so rebased/fixed conflicts. I didn't want to force-push to this branch, so pushed to https://github.com/mccanne/zq/tree/fix-json-timestamps-rebase , in case that's useful.


Please release a native AppCenter.app equivalent to HockeyApp.app for macOS

Describe the solution you'd like
An AppCenter replacement for the HockeyApp.app native client for macOS
NB I'm sure I've seen this requested more than once; sorry if this request is a duplicate.
Describe alternatives you've considered
The CLI interface to AppCenter is a real pain to use - look at https://github.com/Microsoft/appcenter-cli, there are no examples on how to do things; the documentation is pretty much non-existent.
When using HockeyApp.app; when an export completes in Xcode, the build is presented automatically in HockeyApp.app window; all I need to do is select distribution and add some release notes, and the .app and accompanying symbols are uploaded automatically. This is so easy. HockeyApp.app also allows me to upload from a history of the builds on the hosting mac - again, this is brilliantly easy to use.
When I open an apl file for Android;  the build is presented automatically in HockeyApp.app window; all I need to do is select distribution and add some release notes, and the .app its uploaded automatically. This is so easy. Furthermore, I can see no reason why you couldn't add some "smarts" to build and upload the symbols.zip for any included .so files automatically.
Additional context
Nothing to add here.

@sseyod unfortunately it's not on our current roadmap so it won't work anymore after the shutdown. I would like to understand better what is so bad about the CLI all the commands are either documented in the repo or in the tool itself and it provides you with the usage pattern. Are you looking for specific examples?

Hi - sorry for the delay in reply, but I've been on holiday.
It is a really great shame that the native UI as suggested isn't on your roadmap - for many people, a GUI like this is simply the easiest way to work - scripts appeal to some people / developers, but not to all.
Anyhow: I looked at the CLI documentation and simply couldn't figure-out how to do what I wanted. If you look at the CLI document from the perspective of a developer such as myself with no knowledge of using your CLI, you'll see that the outer level commands are listed, but with no detailed information on how to use them (if this information is available, I can't see it!).
So far as I can tell, the only way to find out how to do things, would be to invest a lot of time in trial-and-error usage; my time is too short to do that. So yes, I think the documentation is probably missing a lot of example usages. I'd suggest that every command needs at least one concrete example. For what it is worth, I presume that Microsoft uses the CLI on a regular basis internally, so would hope that you could quickly populate a lot of examples with commentary as to what each example sets-out to do, and how the parameters in the examples map-on to that.
Anyhow: hoping this feedback helps! Pete

I agree with @sseyod
Im using native app most of the time when interacting with HoskeyApp.
The build upload isn't much pain on our main project - it is using automated build scripts, which uploads builds automatically with symbols and changelog.
But we have other small projects which are distributed manually and Im not using anything else but Native Mac App.
Also Crash browser is much much better than crash browser in web app.
In native app I can see summary of the app with number of crashes per version. On the website I must gues, which version and build is having some crashes and which not.... :(
When I select one version of app I can see what percentage of crashes and crashes groups are solved. On the web where is nothing like that. Even the states of the crashgroups are distinguished only by Status text, which is visually so small element, that the whole list of crashes is total mess... :(
And finally native app can link the version of app to its git repository - so one can see relevant code lines with whole the sourcecode around. In Appcenter I must download the crash as text, rename the file to having .crash extension and open it in xcode manually. Also I must have the right branch checkouted...
So Im really disappointed and dont understand, why the whole service has been redesigned and rewritten so much with cutting good features out :(
The native app was one of the main feature, why we were using HockeyApp. Now the feature will be gone.

We also use the native app a lot - especially for viewing stack traces linked to the git repository with relevant code.

+1 for this. I really value the native app, especially for reviewing crash reports, and it'll be a big loss when it's not available.


Setup Environment with Space in Path

Fixes #334  with the setup_enviroment.sh script by enclosing the cd command in ''

tysm


reorganization

This does a few things:

cleans up indenting to make HTML templates more readable
create a "basic" template to use for case-studies, index, partners, community
to help with not repeating self and re-using header and footer components
inline styles for case-studies pages are now a stylesheet loaded specifically
for those
separate head-header.html into head.html and header.html so the opening body
tag is not oblivious to the template
move google analytics scripts to footer-scripts.html so it can be used
globally

So overall mostly this is trying to make it so the community, case-studies, index, and partners page don't all use different templates defined by that page, some were even missing specific things like analytics scripts because they were doing their own thing. This makes it so they use the "basic" template I made to make sure all the header and footer elements are used globally.

This change is

no rush on this, I mostly just couldn't unsee, and it was going to drive my OCD crazy

Hey @jessfraz , the community and partners pages got rearranged out from under us a little bit, which caused some merge conflicts in this PR. Can you check it out?

@jessfraz can you resolve the conflicts here?

Going to close and reopen as some smaller PRs

ping @jaredbhatti rebased

i have no idea why netlify failed it works locally for me

@jaredbhatti I split this into different commits so you could see everything that changed and how this will be much more maintainable now.

@jessfraz What's the status on this? Feel free to ping me directly, but there are still some merge conflicts here.

Ah sorry they might have happened right after... I'll rebase again
On Wed, Dec 21, 2016, 17:23 devin-donnelly<EMAIL_ADDRESS>wrote:

@jessfraz https://github.com/jessfraz What's the status on this? Feel
free to ping me directly, but there are still some merge conflicts here.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes/kubernetes.github.io/pull/1450#issuecomment-268683940,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABYNbIKMuMFPqywEOpMblCEJGzVDfi1jks5rKcLrgaJpZM4KVUkB
.

Huh, can you try resolving the conflicts that popped up?

rebased, ping @devin-donnelly @jaredbhatti :)

Thanks for all your work on this!


[llvm] Build error

OS: Ubuntu 20.4
Compiler: gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)

Steps to reproduce the behavior:
./vcpkg install llvm[libunwind]
The repo was pulled yesterday
/home/user/Development/vcpkg/buildtrees/llvm/src/org-14.0.4-df58f01928.clean/libunwind/src/UnwindLevel1.c:23:10: fatal error: 'stdbool.h' file not found
#include <stdbool.h>
         ^~~~~~~~~~~

LLVM builds ok, libunwind fails, please see attached logs
install-x64-linux-dbg-.zip

Could you find the stdbool.h file on your linux machine?

sudo find / -name stdbool.h

/home/user/Development/vcpkg/installed/x64-linux/include/aws/common/stdbool.h
/home/user/Development/vcpkg/buildtrees/llvm/src/org-14.0.4-df58f01928.clean/clang-tools-extra/test/clang-tidy/checkers/Inputs/modernize-deprecated-headers/stdbool.h
/home/user/Development/vcpkg/buildtrees/llvm/src/org-14.0.4-df58f01928.clean/clang/test/Modules/Inputs/System/usr/include/stdbool.h
/home/user/Development/vcpkg/buildtrees/llvm/src/org-14.0.4-df58f01928.clean/clang/lib/Headers/stdbool.h
/home/user/Development/vcpkg/buildtrees/llvm/src/org-14.0.4-df58f01928.clean/libcxx/include/stdbool.h
/home/user/Development/vcpkg/buildtrees/llvm/x64-linux-dbg/lib/clang/14.0.4/include/stdbool.h
/usr/include/c++/9/tr1/stdbool.h
/usr/include/c++/10/tr1/stdbool.h
/usr/lib/llvm-10/lib/clang/10.0.0/include/stdbool.h
/usr/lib/gcc/x86_64-linux-gnu/9/include/stdbool.h
/usr/lib/gcc/x86_64-linux-gnu/10/include/stdbool.h
/usr/lib/gcc/x86_64-linux-gnu/8/include/stdbool.h
/usr/lib/llvm-11/lib/clang/11.0.0/include/stdbool.h
/usr/lib/llvm-14/lib/clang/14.0.5/include/stdbool.h
/usr/lib/llvm-9/lib/clang/9.0.1/include/stdbool.h
/usr/lib/llvm-12/lib/clang/12.0.0/include/stdbool.h
/snap/clion/198/bin/clang/linux/include/stdbool.h
/snap/clion/193/bin/clang/linux/include/stdbool.h

Could you please use ./vcpkg install llvm[libunwind] --debug and send the stdout-x64-linux.log to me? Thank you!

Could you please use ./vcpkg install llvm[libunwind] --debug and send the stdout-x64-linux.log to me? Thank you!

here you go. BTW, I dont see the debug output being captured in the stdout-x64-linux.log
stdout-x64-linux.log
libunwind.log

@Cheney-W any news? any additional input you need?

Sorry for the delay! I can't reproduce the issue here, I think you can delete other versions of g++, keep only one version, and try if the issue still exists.


Is there any way I can get the list of choices defined from a field in a class?

I know I could save the list outside of the context of the field but it would be cleaner if I could tap into the field list directly. Is there a method implemented for this? Thank you in advance!

Found it under CLASS.constructor.getValidator("field-name") for each class, sweet!

Yep exactly :)


added counter

Kindly finish this in next 7 days

@mansi0812

I would close the PR tomorrow evening since there are no updates.


Where to get the trained model on Instre and imageNet?

Thanks for your great work. The released v1-train ,v2-init,v2-train models are trained on the grozi3.2k dataset.
How could we get these models trained on the Instre or the Imagenet-LOC dataset? Training one model costs too much time.

Hi, I've managed to dig out some models trained on INSTRE: gdrive
However, I'm not sure whether those are the correct ones and I dot not have capacity to test them.
If everything is correct they should be compatible with the script launcher_instre_eval.py when unpacked in the root of OS2D (note that there are more models programmed to for evaluation whereas I've uploaded only the two best ones).
Unfortunately, I have not been able to find any models trained there.
Best,
Anton

I do not remembre any problems like that. I did very long training runs on INSTRE on 32GB GPU and never had any memory leaks.

Please also note that maybe you do not need that many iterations as the quality on validation may already be stale

I trained os2d using the INSTRE-all and evaluate on INSTRE-S2-val，and Iter is 60000(200000). Resnet50
loss 0.0282
loc_smoothL1 1.63
cls_RLL 0.0282
cls_RLL_pos 0.02
cls_RLL_neg 0.0079
mAP0.5  0.8082
mAPw0.5 0.8208
recall 0.94
APjointclasses  0.78
the mAP0.5 0.80 is slight higher than the paper 0.777, then the program did crash again. I will try to figure it out why it is.

I evaluate these two resnet101 weights on INSTRE-s2-val using the main.py. the mAP 0.5 are 0.8511 and 0.8751.
I add a new merge NMS to deal with the large object because the large object always has lots of small bboxes. So I merge these which has a high iou bboxes  and it looks good with I use the default weights trained on Grozi3.2k dataset.
And I run the demo with the resnet101 weights on some images taken by my phone. The both models may get more  false positive.


determine if nbresuse is running in docker or pod

Returns the correct memory & cpu values when nbresuse running in a docker or pod environment

forgot import os module

Thanks @xianglei. It's true the limits are for now not accurate when running in a container (not taking the cgroups limits into account).


How to use keyboard navigation?

Thanks for creating this nice plugin.
The README file says:

You can use the keyboard to navigate the search results. The up and down arrow keys can be used to move through the results, and the enter button will take you to the setting.

If I press CTRL+, to display the settings dialog window and then type "core pl" into the search field in the top left corner (let's say I want to browse core plugin settings) the top item in "Settings search results" in the right pane is "Search core plugins" but how can I use keyboard navigation to activate it? Tab does not work, arrow keys does not work, enter does not work. Also, I was used to that pressing ESC would close the settings dialog. However, now ESC does nothing and I have to manually close the dialog by pressing the cross mark in the top right corner. If I do this, and close the dialog and then reopen it again by pressing CTRL+, the search field is already filled out with "core pl" but the   "Settings search results" in the right pane does not show "Search core plugins" any more as the top result.
I am on Linux using Obsidian version 0.14.2

I do not believe this is an issue anymore....


Fix a documentation for package.build option.

Fix for #4430.

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @matklad (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

@bors: r+
Thanks!

:pushpin: Commit 60a3a81 has been approved by alexcrichton

:hourglass: Testing commit 60a3a81e051bce40ebe5d339d93b5b12ca5b6e2b with merge 7c47eeb29f7ce946446aaee3208ec6f3e4d18db0...

:sunny: Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 7c47eeb29f7ce946446aaee3208ec6f3e4d18db0 to master...


Adding space after category pills

Adds space between the category pills and the first row of collection cards.

Screen shot:

Coverage remained the same at 99.632% when pulling f053667bf5198cfa39ed81eb52ed2ced1aae2c3d on pill-padding into ca653781e1d274b858eea5548442407e83d77dea on master.


Use History.pushState

Is your feature request related to a problem? Please describe.
When I hit the browser back button, I go back to the Chrome new tab screen.
Describe the solution you'd like
I'd like to go to the previous path/route.

Thanks @lorensr we're already on it and the fix should be in the next release :)

Hey @lorensr this should be fixed now in the latest release if you would like to retest. Thanks!

Works! One thing: after hitting <, I expected to be able to go forward in history, but I wasn't able to.


Read replica outputs contain junk empty string

What's the purpose of the adding the empty string to the output list? For example, across all of the modules, we'll find the following outputs:
// Replicas
output "replicas_instance_first_ip_addresses" {
  value       = concat([for r in google_sql_database_instance.replicas : r.ip_address], [""])
  description = "The first IPv4 addresses of the addresses assigned for the replica instances"
}

...

output "read_replica_instance_names" {
  value       = concat([for r in google_sql_database_instance.replicas : r.name], [""])
  description = "The instance names for the read replica instances"
}

However, something like the following is not only cleaner but more appropriate because our list has length zero when there are no replicas:
[for r in google_sql_database_instance.replicas : r.name]

Furthermore (and probably better as its own issue), but as of TF 12 outputting entire resources is supported, so why not just do that instead of outputting only specific attributes? In my case I wanted to get the private IPs of my replicas, in which case we have to use a data source to look up each replica:
module "mysql" {
  source  = "GoogleCloudPlatform/sql-db/google//modules/mysql"
  version = "4.4.0"
  ...
}

data "google_sql_database_instance" "replicas" {
  for_each = toset([for x in module.mysql.read_replica_instance_names : x if x != ""])
  name     = each.value
  project  = var.project_id
}

output "private_ips" {
  value       = [for x in data.google_sql_database_instance.replicas : x.private_ip_address]
}

The conditional to get rid of the empty string is an eyesore, and the data source approach is also quite roundabout when ideally the module could instead output the replicas it already knows about:
// within the module
output "replicas" {
  value       = google_sql_database_instance.replicas
  description = "The read replicas"
}

Then the user can access any attributes they want without an intermediary data source:
module "mysql" {
  source  = "GoogleCloudPlatform/sql-db/google//modules/mysql"
  version = "4.4.0"
  ...
}

output "private_ips" {
  value = [for x in module.mysql.replicas : x.private_ip_address]
}

I believe this was added as part of the transition to using for_each to work around some bugs in outputs, but we could remove it now. I'd be happy to review a PR.

Indeed that workaround would of been due to a bug, cant recall the exact specifics right now but a quick search shows its also being used in the GKE module (list of node pool names etc)
Agree with outputting the replica resource itself, the old output formats were kept as is to maintain backwards compatibility during the for_each PR.

Awesome! Thanks for the quick response! I'll create a PR right now

The associated PR for this issue was #194 which was merged in, but I originally also elaborated on another issue in the original post which #193 addresses, so I should probably open up a new ticket to track that work instead.


Repository errors

Gogs version (or commit ref):
Git version: 2.8.3
Operating system: Windows
Database (use [x]):

[ ] PostgreSQL
[x] MySQL
[ ] SQLite

Can you reproduce the bug at https://try.gogs.io:

[ ] Yes (provide example URL)
[ ] No
[ ] Not relevant

Log gist:

Description
Gogs not picking up the correct directory, it looks like it's getting confused with the directory path which is appearing in both Unix and windows style.
Creating Repos from scratch does work.
Migrating results in errors as does editing through the web interface
Example Error when trying to alter README.md from within Gogs:
Failed to update/create file 'README.md' with error: UpdateLocalCopyBranch [branch: master]: git clone master: exit status 128 - Cloning into 'data/tmp/local-rpeo/10'... fatal: '/cygdrive/g/gogs/G:\gogs\gogs-repositories.."name"..git' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ...

Same issue mentioned here https://github.com/gogits/gogs/issues/482 which finally helped me solve the issue.
I Have Cygwin installed and "C:\cygwin\bin" set in the PATH Environment variables. (I only got the error when C:\cygwin\bin was early in the line).
My Fix was to Edit my "Enviroment" settingsin the NSSM Service, Removing %PATH% and instead setting the specific location of Git and Gogs.
The fix mentioned in the above thread didn't work for me but I have resolved the issue by specifying


Recommended SMTP settings confusing steps

https://sendgrid.com/docs/Classroom/Basics/Email_Infrastructure/recommended_smtp_settings.html
The first step says I need to use my username and password,  and then the last step says I need to use the apikey` for username and the api key for password.
Does that mean I can use one OR another ? I think it should be more clear, as the bullet lists made me think as steps to follow and configure.

Hi @endersonmaia,
Thanks for reaching out. The first bullet point is referring to your username and password that you use to log into app.sendgrid.com, and the last bullet is referring to the API Key that you create in bullet 2 (which you have to log into app.sendgrid.com in order to create).
This page could definitely use some clarification though, and I've added it to our internal backlog!
Kaylyn


[design] profile / account mgmt

leave reputation badges bar for later: #328
always refer to figma for design

profile is merged, accountMgmt is still open for review: https://github.com/encointer/encointer-wallet-flutter/pull/324


config: allow to use a loopback interface

As per documentation, a loopback interface should be allowed once the
multicast flag has been enabled (with ip link set multicast on dev lo). Enabling pimd on a loopback interface seems to work just fine on
Linux.
Signed-off-by: Vincent Bernat<EMAIL_ADDRESS>

Awesome :+1:


Reset button margin

Ref #4008
Buttons in safari have 2px margins by default. normalize.css resets that.

Interesting. Thanks for the PR, @oddui. I don’t see any problems with including this in 1.1, but I’ll let @sgomes decide if this makes actually makes the cut :)

imo we shouldn't be adding in yet more global resets. Instead target the button component and set its margin to 0. Then any of the modifiers can set a margin as-needed.

Well spotted, @oddui!
I agree with @Garbee, though; we should be doing this on mdl-button rather than button. How does that sound, @oddui?

Makes sense, updated.

LGTM. Considering we have agreed this is the fix and the move is right, merging on in.
Thanks!


ImportError in Python (NNSplit)

Hi, I was trying the simple example in Python from the documentation and I'm getting an ImportError:
from nnsplit import NNSplit
splitter = NNSplit.load("en")

# returns `Split` objects
splits = splitter.split(["This is a test This is another test."])[0]

# a `Split` can be iterated over to yield smaller splits or stringified with `str(...)`.
for sentence in splits:
   print(sentence)

When executing this example I'm getting the following error:
Traceback (most recent call last):
  File "nnsplit.py", line 1, in <module>
    from nnsplit import NNSplit
  File "G:\OneDrive\projects\s\nnsplit.py", line 1, in <module>
    from nnsplit import NNSplit
ImportError: cannot import name 'NNSplit' from partially initialized module 'nnsplit' (most likely due to a circular import) (G:\OneDrive\projects\s\nnsplit.py)

I have installed the packages in a new conda environment, executing pip list installed I have:
pip list installed
Package         Version
--------------- -------------------
certifi         2020.12.5
nnsplit         0.5.7.post0
numpy           1.20.3
onnxruntime     1.7.0
onnxruntime-gpu 1.7.0
pip             21.1.1
protobuf        3.17.1
setuptools      52.0.0.post20210125
six             1.16.0
tqdm            4.61.0
wheel           0.36.2
wincertstore    0.2

Hi, thanks for the issue!
I believe the problem is that the file is named nnsplit.py, can you try renaming it? I just tried using numpy in a file called numpy.py and get the same error, so I don't think this is a bug in nnsplit.

Hi Benajamin, I think that was an issue on my side... I put that name on the file temporarily and I didn't change it :)
Now, the example works, thanks a lot.


Customization options

Please add the posibility to customize the colors of the tags and other elements, because it is an awesome library and works pretty well, but we are not able to customize it.
Thanks!

https://github.com/purrrminator/AKTagsInputView/issues/17

glad you like it, but I've no time for this enchancement


System.AggregateException on LokiLogEntryProcessor

I'm getting the following error
System.AggregateException: 'An error occurred while writing to logger(s). (Cannot access a disposed object.
Object name: 'LokiLogEntryProcessor'.)'
Inner Exception:
ObjectDisposedException: Cannot access a disposed object.
Object name: 'LokiLogEntryProcessor'.
It is strange that I don't get the error if I don't call my custom Configuration Builder.  This is running on .Net 8.  I tried removing any references to logging in the custom Configuration Builder and the error occurs.  If I remove the configuration builder, I don't get the error but of course I don't get my needed configurations.

Hi, I also got this error!

Caveat: I haven't written an asp.net logger before. I investigated a little bit and it seems that the LokiLogEntryProcesser is disposed at 2 places in LokiLoggerProvider: in the options' OnChange callback and when the provider itself gets disposed. I debugged and it is indeed the OnChange callback that is disposing the loggerFactory which in turn Disposes the processor. The next call to EnqueueMessage then throws the ObjectDisposedException.
In my app, I am downloading objects to a folder next to the binary which might be why the the OnChange callback is called even though no options have actually changed. I suspect this doesn't happen very commonly and while writing this I'm not sure how to fix this but maybe one of the creators know?

Just a heads up that I'll be archiving this project soon and will be closing all issues. I don't have capacity or motivation to keep maintaining it.
I now recommend using OpenTelemetry in your .NET application to export logs via the OpenTelemetry Protocol (OTLP). OpenTelemetry is a vendor-agnostic framework with strong industry support and both Grafana Loki and Grafana Cloud Logs now support ingesting logs via OTLP.
Both OpenTelemetry and Grafana Loki have matured considerably since this project was conceived.


ERROR: No toolchain found for cpu 'armeabi-v7a'.

I encountered this during build:
bazel build examples/...:all
.................
ERROR: No toolchain found for cpu 'armeabi-v7a'.
I am building on x86, why do I need arm?

Workaround: Delete the tools/cpp directory.
I think I know what happened here. The //tools/cpp/... directory was copied from an older version of https://github.com/google/bazel/tree/master/tools/cpp. The copy went out of date.
Not sure what this impacts and if there were any patches applied to it.

Cool, I saw your other reply.
Can you show me how you configured this in .blazerc file?  I think that it is needed to compile this correctly.

I have a docker file with these run commands. Should work normally.

git clone --recursive https://github.com/google/bazel bazel
&& cd bazel/
&& ./compile.sh
&& ./output/bazel build //scripts:bazel-complete.bash
&& cp bazel-bin/scripts/bazel-complete.bash /etc/bash_completion.d
&& echo export PATH="$PATH:${PWD}/output/" >> /etc/bash.bashrc
&& ./output/bazel fetch //third_party/... //examples/... //src/...
git clone --recursive https://github.com/mzhaom/trunk.git bazel_trunk

Delete the tools/cpp from the trunk.
Create a new workspace where I'll put my code in. Copy the contents of the trunk/WORKSPACE into the new WORKSPACE file.
~/.bazelrc should have the trunk workspace in the path.
Mine looks like:

cat ~/.bazelrc
build --package_path %workspace%:/home/jeremyje/development/trunk:/home/jeremyje/development/bazel/base_workspace
fetch --package_path %workspace%:/home/jeremyje/development/trunk:/home/jeremyje/development/bazel/base_workspace
query --package_path %workspace%:/home/jeremyje/development/trunk:/home/jeremyje/development/bazel/base_workspace

Thanks, this worked!

Thanks for the report and suggested fix! I integrated tools/cpp from bazel upstream, which should fix the issue now. The reason I kept another copy was I would like to extend the crosstool definition to cover other compilers like LRTE, which I'm working as another project.