I've rebuilt a React Native app using Expo, and from that experience, I would highly recommend using Expo. Even the official React Native documentation recommends it.
Regarding the concern about libraries that require native code (like Scandit or NeptuneLiteApi), you can still access native capabilities in Expo by using a development build instead of the default Expo Go app. see here for more information about development build
With a development build, you can write and include custom native code in the android/ and ios/ directories—just like in a regular React Native project.
If there's no ready-made Expo package for NeptuneLiteApi, you can:
I've been asking myself about using @Observable (replacement macro for ObservableObject) outside of SwiftUI for some time, it seems it was considered in the initial proposals but not implemented, and the workaround solutions feel like... workarounds. I was excited to see that Observations got implemented in Swift 6.2:
https://github.com/swiftlang/swift-evolution/blob/main/proposals/0475-observed.md
So now, outside of a SwiftUI view, you could write:
@Observable
final class Person {
var firstName: String
var lastName: String
var name: String { firstName + " " + lastName }
init(firstName: String, lastName: String) {
self.firstName = firstName
self.lastName = lastName
}
}
var person = Person(firstName: "John", lastName: "Doe")
let personNameChanges = Observations { person.name }
for newName in personNameChanges {
print("Hello, \(newName)"
}
you can solve this :
1. adb kill-server
2. adb start-server
3. connect with other port like this adb connect 192.168.xxx.xxx:5556
i try this and success
I think its a springboot REST application. But i dont see the annotations, so i wonder whether it really is one. Anyway, assuming that you would be adding the annotations once u get past compiler errors.
So, for this compile error, I would recommend get and IDE like STS - https://www.geeksforgeeks.org/how-to-download-and-install-spring-tool-suite-spring-tools-4-for-eclipse-ide/ this might help. and ensure u have java set in the eclipse like:enter image description here .
Then try Project > BuildAll .. from there u can start debugging if your compiler does not give any more errors in STS
I'm also stuck on this , what was the fix btw . Thank you
I gave up on simpleaudio and just started using winsound, I appreciate the help that was provided. Thank you!
💸 Helping people earn real Cash App rewards!
🎁 Get exclusive offers & gift cards – no tricks, just legit deals.
✅ 100% Free | 📍 USA Only | 🕐 Limited-Time Offers
👇 Tap the link & start earning today!
Click Here: ✅✅ https://smrturl.co/a/s7bca5dc991/11279?s1= ✅✅
Note that the accept answer suggests using the OpenCensus Python SDK which has been retired as of July 2023.
Instead, Microsoft suggest switching across to their OpenTelemetry offering and provide the following migration guidance as well as a guide for how to get started with azure-monitor-opentelemetry .
helo, try using this site.. forward Emil to webhook
https://hubpanel.net/blog/receive-emails-and-forward-them-to-rest-apis-with-email-webhooks
@luigimarangio If init__.py is literally empty, shared_code folder may not be recognized as a module. If you add something like '# -*- coding: utf-8 -*-' as a comment to __init__.py , does it change the behavior in any way?
try using this site. email to webhook
https://hubpanel.net/blog/receive-emails-and-forward-them-to-rest-apis-with-email-webhooks
yo logre realizar rl algoritmo con la ayuda de Chat GPT, yo puse la lógica de como debía abordar y programar el algoritmo, soy matemático no soy programador, resuelvo el problema manualmente y con ese diseño manual logre que chat lo programara. resolver una semana manualmente me ha llevado hasta 4 días, con el algoritmo lo hace de una vez, en menos del minuto, he generado hasta 100 semanas respuesta para un solo problema.
Such an implementation would be a button that looks like it's on the bottom navbar but in reality, it's just a regular button on the bottom bar, and when you route to the page,
options={{
presentation: 'modal',
}}
needs to be added to the Stack.Screen definition under options.
I was going to comment, but for readability this will be easier as an answer. I'm not sure this qualifies as an answer as I am not familiar with Gradle.
Regarding:
Are there tools, best practices ... that can help enforce strict module boundaries and encapsulation
...and keeping in mind:
I've structured each domain module into two sub-modules: api and impl.
This answer https://stackoverflow.com/a/62257045/39094 talks about access with regards to modules. On the basis of that I'd have thought you can have one module instead of two for a given domain, and just have it so only the API methods are set as public / accessible on the module. That way encapsulation can be enforced as you want it, and you have less modules and a simpler design.
Regarding Dependency Cycles. @SpaceTrucker makes an excellent point - just because calls go in both directions doesn't mean it's necessarily cyclical as in a death spiral, but it does indicate some potential coupling or at least that they work closely together to achieve something. Might be worth a design review, but doesn't mean you should panic right off the bat.
Some kind of static code review would probably be a good way to test for the presence of stuff like that, but I have not used static code analysis before so can't comment further. It looks like there's no shortage of tooling options for Java in that regard.
Internet search informs me that yes, you can use Gradle to control/initiate static code review - so yes it's possible, and based on my generic software engineering experience such an approach would not be an objectively bad idea.
There is no limit built into SQL. In practice, you will most likely hit limiting factors like memory or performance issues.
You need to assign this role on the ACR to the identity that is associated with your AKS cluster.
AcrPull
When you set your new value to the loc, specifying the data type seems to satisfy that error message.
df.loc[df["Measure"] == metric.label, "source_data_url"] = str(metric.source_data_url)
For instance, if you want to set it equal to an empty value that is not None, you'll have to specify that it's a string first.
df.loc[df["Measure"] == metric.label, "source_data_url"] = str('')
Caching is not storing the data.
"Storing" is just saving data.
"Caching" is smart storing — it's temporary, performance-driven, and usually designed to:
Avoid slow operations (e.g., network/database)
Expire/refresh at some point
Be reused automatically
In my own case, it was a extreme edge case of NEXT_SERVER_ACTIONS_ENCRYPTION_KEY causing the module to be omitted from the build.
A simple regeneration of the the key with openssl rand -base64 32 resolved the issue.
Hm in CDK v2 everything is one big size pack like aws-cdk-lib but its still organised by service like S3, Lambda, EC2 etc so these are the "modules" and when it says "check the notes..." they mean look at the section for each service liek aws-3 or aws-lambda in the release notes on GitHub release notes cos thats where they list the changes for each part
I ran the test in my environment and it works correctly. Could the error be here?
Error: Could not find or load main class Files\\Common
Caused by: java.lang.ClassNotFoundException: Files\\Common
Is it possible that you have the path to the jdk environment variables misconfigured?
A slightly simpler solution without LINQ:
static String GetNumbers(String input)
=> new String(Array.FindAll(input.ToCharArray(), Char.IsDigit));
Answering for anyone stumbling on this question today. For Microsoft 365 and later, zeros can be avoided by appending an empty string to the Indirect's output. Though keep in mind your output will become a string. This works on array outputs as well.
Indirect(Reference) & ""
If you know the target is safe for dev purposes, you can use environment variable `PACT_DISABLE_SSL_VERIFICATION=true`
What was your reasoning behind using max_delta step as 0.7?
In addition to @Ruan Mendes, to have the context menu display at the proper location you can just get the component current XY focus value , then add it to the coordinates:
var click_x_pos = e.pageX + html_editor.getFocusEl().getX();
var click_y_pos = e.pageY + html_editor.getFocusEl().getY();
Go ask to AI , we don't need stackoverflow again. I hate the community back then
I found this guide helpful: https://medium.com/snowflake/snowflake-security-service-accounts-9663beeb1d30 Just replace the text for the RSA_PUBLIC_KEY with the actual public key that you generate.
-- Create Service User
CREATE OR REPLACE USER ingestionservice
DEFAULT_ROLE = 'INGESTION_ROLE'
TYPE = SERVICE DEFAULT_SECONDARY_ROLES = ('ALL')
-- NETWORK_POLICY = INGESTIONSERVICENETWORKPOLICY -- Recommended: see the link for details.
RSA_PUBLIC_KEY='MIIB....' -- Snowflake shows how to create this here: https://docs.snowflake.com/en/user-guide/key-pair-auth
COMMENT = 'Service User for Ingestion';
pip install tensorflow==2.15.0 tensorflow-hub keras==2.15.0
after 6 hours searching with AIs and internet, the above code finally work for me !!!
For anyone else who have found there way here after pounding there head on this issue, this comment worked for me. There are other useful suggestions in that thread as well.
Maybe not an answer to your question, but a suggestion: Python often has built in tools doing the work for you. This question looks like an exercise for split():
sentence = "Humpty Dumpty sat on a wall" #input("Please type in a sentence: ")
print([word[0] for word in sentence.split()])
Have you answered the question about it, and I need it too
I was able to solve this oddity by converting text into image.
As far as my testing goes: Liquid Retina (camera notch) has a slightly different vertical alignment for text and will behave oddly (passive vs active desktop focus, aligns opposite ways, etc), unlike all other displays I've checked (external 4K 16:9, M1 Air 16:10).
However, the images were always aligned, so:
class AppDelegate {
//...
let status: NSMutableAttributedString() = NSAttributedString(string: "Hello World"))
DispatchQueue.main.async {
let size = status.size()
let image = NSImage(size: size)image.lockFocus()
status.draw(at: .zero)
image.isTemplate = true
image.unlockFocus()
button.image = image
}
}
I ended up going with this:
increase((count by (repo,workflow) (github_workflow_run_status{repo='xxxx/yyy', workflow='zzz'}) - sum by (repo,workflow) (github_workflow_run_status{repo='xxx/yyy', workflow='zzz'}))[2h:5m])
This gives me the number of failed jobs in the last two hours to work with for my alert.
If your project allows, adding "type": "module" to my package.json fixed this for me.
Total commander file list (copy) Total files: 1 /storage/emulated/0/Download Laq1Zen Tennessee (1).mp3 1402927 2025-04-04 20:38:56
libs.versions.toml:
materialCalendarVersion = "2.0.0"
materialCalendarVersion2 = "1.5.3"
materialCalendarVersion3 = "1.9.2"
materialCalendarVersion4 = "2.1.5"
material-calendar-view = { group = "com.github.prolificinteractive", name = "material-calendarview", version.ref = "materialCalendarVersion" }
material-calendar-view2 = { group = "com.github.dorukkangal", name = "material-calendar-view", version.ref = "materialCalendarVersion2" }
material-calendar-view3 = { group = "com.applandeo", name = "material-calendar-view", version.ref = "materialCalendarVersion3" }
material-calendar-view4 = { group = "com.kizitonwose.calendar", name = "view", version.ref = "materialCalendarVersion4" }
I'm getting the same error. I've tried all these libraries, but the one that worked for me without any errors is the latest one. Why?
Library (prolificinteractive): The latest version is old, I think it's 2020. And it's not ready for androidx, so it creates conflicts. Needs to add jitpack.io. https://github.com/prolificinteractive/material-calendarview
Library (dorukkangal): It uses appcompat-v7 and android.support, so it conflicts with androidx and is outdated. Needs to add jitpack.io.
https://jitpack.io/p/dorukkangal/material-calendar-view
Library (applandeo): It works correctly, uses androidx, but it's not adapted for Jetpack Compose. You need MavenCentral, which is already included in the project by default.
https://github.com/Applandeo/Material-Calendar-View
Library (kizitonwose): It's the newest and works for XML, Compose, and cross-platform compose. You need MavenCentral, which is already included in the project by default. https://github.com/kizitonwose/Calendar?tab=readme-ov-file
It's the one I'm going to use. Compose is the future of views on Android.
Hope this helps.
This XML file does not appear to have any style information associated with it. The document tree is shown below.
if length on event is 5 then length on on string is 0 there will be no number to be defined and it will be 0
If you're testing locally or your server has an incorrect system time:
(await fetch("https://cdn.doubleverify.com/dvbm.js")).headers.get("date");
This works because https://cdn.doubleverify.com/dvbm.js returns both:
access-control-allow-origin: *access-control-expose-headers: *I'm using this specific URL since it shows up in your network logs on any page you load using StackOverflow.
DigitalOcean is closed for 465 and 578 ports, its impossible, you can use email api service tool.
The error suggests that PyPi might be blocked by a proxy, as you initially thought.
There are 2 real ways around it: get in touch with your work's IT admin(s) and ask them if they can install it for you, or, if they won't, try using a VPN; plenty of free ones out there, I'd recommend either xvpn or proton VPN.
There might be spaces in the FileName and Char(34) might not work.
Put the " in the command.
FileName = Button1.Text
mciSendString("open """ & FileName & """ alias myDevice", Nothing, 0, 0)
mciSendString("play myDevice", Nothing, 0, 0)
FileName = Button2.Text
mciSendString("open """ & FileName & """ alias myDevice", Nothing, 0, 0)
mciSendString("play myDevice", Nothing, 0, 0)
Sometimes just keep it simple , make sure that you have the library under maven jars in your ide , if it is the case just try to restart your ide and it will load the package
[hideLoading]=true
<formio [form]="form" [submission]="{ data: submission.data }" (submit)="submission = null"
[hideLoading]=true>
</formio>
It's just the act of storing data for late use indeed.
The stored data is called the cached data. And a strategy used to cache data is called a caching strategy.
So I was able to move past the error I was receiving, it was a combination of a couple of things:
Reviewing the blog article helped as it provided the location to add the appropriate files https://medium.com/apparence/how-to-fix-no-such-module-flutter-error-in-xcode-d05931905def
The more relevant issue was that the error I was receiving was in the Pods target. I ended up loading the ios/Runner.xcworkspace file and selecting the Pods Target and the going to the url_launcher_ios sub-target and adding Flutter.xcframework to the Framework and Libraries located there.
That fixed my issue and allowed me to continue the build. I ended up getting some flutter.h file not found as well but I added the Flutter.xcframework to the sub-target that spawned the error and that resolved it also.
why not just check the path? C:\Program Files (x86)\Microsoft\EdgeWebView\Application
seems a lot easier than checking the reg. important if you are doing a silent install: MicrosoftEdgeWebview2Setup.exe /silent /install
you need check in a loop with a 2 sec pause if the path exists before starting up the app.
https://developer.microsoft.com/en-us/microsoft-edge/webview2
its the evergreen standalone installer
Here is an example for using Qt5 to build a Mac Silicon compatible app
I’ve just released a new high-performance NoSQL local database built entirely in Dart — QuantaDB. It’s designed to overcome the limitations of existing local databases by offering:
A pure Dart implementation
A high-performance LSM-Tree engine
Competitive read/write speeds
Simple and intuitive API
Data durability
Support for complex data models
A reactive query system
If you're building Flutter/Dart apps and need a robust local storage solution, give it a try:
Regarding the NEVER propagation: based on the documentation, its behavior is different. It will throw an exception if it runs within an existing transaction. However, your case is different—you want to ensure that no new transaction is started, and consequently, that no connection is fetched from the pool. In this scenario, SUPPORTED is more appropriate. It will run regardless of whether a transaction is active or not.
Did you get the solution? I am getting this error right now.enter image description here
I'm facing the same issue. Have you made any progress on the solution?
May 2025, instructions work
thank you!
For NVIDIA GPUs, there are numerous GPU-accelerated libraries that are available for different data processing operations across domains.
CV-CUDA is an open-source library that offers GPU-accelerated operators (Python, C++) for image processing/transformation functions like resizing, center crop etc. These are based on hand-optimized kernels that can be faster than some of the other GPU-supported libraries out there. It also has strong interop support with popular DL frameworks like PyTorch and TF with zero-copy interface. https://github.com/CVCUDA/CV-CUDA
Also available for pip install via PyPI: https://pypi.org/project/cvcuda-cu12/ https://pypi.org/project/cvcuda-cu13/
At least for iperf3, only the client send the test parameters to the server, including the client's version, but the server does not send any parameters settings to the client. Therefore, the client does not know the server's version. The assumption is that the different versions are fully backward compatible, but of course that doesn't let you know what features are supported by the server.
You can try this course in Udemy I started it few days ago and it is goes very well
I would like to share what I do, because I suffer with pusblishing to iOS too.
First I test everything on Simulator or my local iPhone device.
At Visual Studio 2022:
I swith the project to Release and chose "iOS Remote Devices \ Remote Device";
Pair with my Mac (in my case it's a virtual machine);
On Project properties, I switch Project Signing to:
Scheme: Manual Provisioning;
Signing Identity: I chose my "iPhone Distribuition xxxx" profile;
Provisioning Profile: I chose "iOS Distribuition xxxx" profile;
Confirm I successfully Build / Rebuild the project without errors;
Chose Publish on my project;
While publishing, I go to my Mac and open XCode and open menu "Window \ Organizer" and wait for my project appear on Archives tab;
After see the project on Archivies I can "Distribuite App" to Apple;
Abort any Publish task still pending in Visual Studio;
I would like to share what I do, because I suffer with pusblishing to iOS too.
First I test everything on Simulator or my local iPhone device.
At Visual Studio 2022:
I swith the project to Release and chose "iOS Remote Devices \ Remote Device";
Pair with my Mac (in my case it's a virtual machine);
On Project properties, I switch Project Signing to:
Scheme: Manual Provisioning;
Signing Identity: I chose my "iPhone Distribuition xxxx" profile;
Provisioning Profile: I chose "iOS Distribuition xxxx" profile;
Confirm I successfully Build / Rebuild the project without errors;
Chose Publish on my project;
While publishing, I go to my Mac and open XCode and open menu "Window \ Organizer" and wait for my project appear on Archives tab;
After see the project on Archivies I can "Distribuite App" to Apple;
Abort any Publish task still pending in Visual Studio;
After lots of trial and error I got these two variants which both work:
INSERT INTO test_csv
SELECT
a,
cast(splitByChar(',', b) as Array(Int16)) AS c
FROM file('test.csv', 'CSVWithNames', 'auto')
SETTINGS schema_inference_make_columns_nullable = 0
INSERT INTO test_csv
SELECT
a,
arrayMap(x -> toInt16(x), splitByChar(',', b)) AS c
FROM file('test.csv', 'CSVWithNames', 'auto')
SETTINGS schema_inference_make_columns_nullable = 0
Also, if there are values where the column b is empty (such as a line y,"") then replace b in the statements above with:
CASE WHEN b = '' THEN '0' ELSE b END
I am not sure why adding the SELECT * around the entire query does not work. I guess the nested select causes confusion for ClickHouse? I think this may be a bug?
You should to make sure you have this configuration in your application.properties file:
spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update
For anyone seeing this in 2025: You might want to use the filenamify NPM package :)
I found an issue similar to your question that might be helpful, as it resolved the issue with Datastream from PostgreSQL to BigQuery. This suggests assigning the Superuser permission to your user and trying the query below with this documentation.
ALTER USER <the user> WITH REPLICATION;
Another troubleshooting step you could try is checking PostgreSQL Memory and Configuration; Review PostgreSQL’s memory configuration (e.g., shared_buffers, work_mem) and ensure they are appropriately set. Increase the memory limits if required to accommodate larger workloads, especially when Datastream is trying to process a high volume of changes.
Apparently the version of win-acme I was using created a cert that powershell can't use, (but IIS Manager can.)
I've updated to a newer version of win-acme to generate the certs. The exact same powershell script is now working.
Issue resolved
the issue was due to
onImageCaptureNavigate = { route ->
navController.navigate(it)},
where it is an object of NavbackStackEntry
while navController.navigate needs a route (route is of type T which is @Serializable
the issue was resolved when I passed route instead of it
Try flutter_esim or esim_installer_flutter packages instead of native kotlin implementation.
This will give the nodes you want: //a | //z
Log4J
<logger name="org.hibernate.SQL">
<level value="debug"/>
</logger>
Log4J2
<Logger name="org.hibernate.SQL" level="debug"/>
Logback
<logger name="org.hibernate.SQL" level="DEBUG"/>
2 Başarılı bir performans teprik ederim bende yeni bir başlangıç yapmak istiyorum
Did you ever find a solution or workaround to this issue? I'm experiencing the exact same problem. Takes ~120ms to close the port.
(((((a)^2)/(-((b)^2)))/(((c)^2)/(-((d)^2)))) = (((-((e)^2))/((f)^2))/((-((g)^2))/((h)^2)))) °=((a(b))(c(d)))=((e(f))(g(h)))
Lumen 8-10 config cache and route cache implementation examples.
I love the code and very interested in see the code... can you share the code with me?
thanks
Alpha version of the hot reload feature for multiplatform: https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-hot-reload.html
Without seeing the error, it is difficult to say, but try instantiating a StaffList in your main method, and then calling searchLastName on this object. If the method is set up correctly then that should run.
The way to use equation 2.1 is to do the following for the 5 iterations:
1: 0+0.5(1-0)=0.5
2:0.5+0.5(1-0.5)=0.75
....
5:0.93750+0.5(1-0.93750)=0.96875
https://projectlombok.org/setup/maven
just follow this, everything will be easy
I searched for quite a while for an answer to the same question but couldn't find any answers. I do have an idea, though:
(1) Save the form field values as cookies.
(2) Make your submit "button" a simple link to a script. Since it's a link, right-click to open in new window/tab will appear and work.
(3) Have that script grab the form values from the cookies.
Since there are no other solutions to this on the web that I can find, I should get a gazillion points for this answer.
You might want to check out ControlAuth - it handles exactly this use case. Full disclosure: I'm the creator, but I built it specifically because I ran into this same problem.
When you clicked Compare Changes, a new tab opened for Current Changes <-> Incoming Changes.
You can return to the original tab to accept a change.
i know it is an old post but i am having the same exact problem. can you help me by any chance on this? would be much appreciated
Your method signature is wrong. If you want to work with the list
public static void searchLastName(List<StaffObject> staffList){
I had the exact same issue. It appears this has been fixed but hasn't been officially released yet:
https://github.com/kivy/pyjnius/pull/753
https://github.com/kivy/kivy/commit/5a1b27d7d3bdee6cedb55440bfae9c4e66fb3c68
I just edited my local files with these changes and that fixed the issue.
Since a sequence isn't a relation, you need to return an empty list after your call block.
{{ return({"relations": []}) }}
After trying a bunch of different apt packages, I eventually found the package that installs /usr/bin/nvidia-smi:
apt install -y cuda-drivers
<p class="contact">Contact Us</p>
I think
You can try disabling the antivirus, and checking the code integrity on windows
apt-get update
apt-get install -y ffmpeg
The issue lies in the id conflict between the two ForEach loops. Since the first few elements have duplicate ids, the lazy layout fails to render them correctly. After giving them elements unique id, the rendering issue fixed.
For those coming to this post recently, Swiper has a breakpoints prop that allows you to specify custom settings based on the breakpoint,
for example:
breakpoints={{
320: {
slidesPerView: 1,
},
768: {
slidesPerView: 2,
}}
Hmm, ... the npm community doesn't seem to be aware of NODE_MODULES https://github.com/npm/cli/issues/8328#issuecomment-2910596072
sffffffffff
header 1 header 2 cell 1 cell 2 cell 3 cell 4
| header 1 |
|---|
| cell 1 |
| cell 3 |
I'm having the same problem, but I can access my app the first time I install it, but the second time I try to access it, these logs appear and the app stays in a flashing screen state. This only happens on one specific smartphone (LM X430), and it happens after I upgraded Flutter from version 2.10.5 to 3.27.0, does anyone have a solution?
I have the same issue with cf. I would appreciate it if anyone could help with this
I know you have probably solved this by now. However if I were going to be doing something like this, and I have, I would not download the data in EBCDIC. I would create a custom translate table on the z/OS side and then use FTP, with SSL enabled of course, in TEXT mode and let z/OS translate the data from EBCDIC to ASCII.
Or if you have one of PKWare's or Data21's "ZIP" programs, create a custom translate table for it and compress the data as text and let them convert from EBCDIC to ASCII. Then download the compressed file in binary mode.
I agree with @Hackinet and @Kamyar Safari. To better understand the scenario, an authorization code is needed at first which will be used to get an access token and refresh token. If the access token expires, the refresh token can be used to obtain a new one. However, to avoid any errors, ensure that your scopes match during the initial authorization and that the correct client_id and client_secret is used.
You can also take a look at this related Stack Overflow post. The question was made years ago but it could still provide some helpful insights.
I found this list useful for binary string manipulation. List of php binary safe string functions:
mb_substr
mb_strlen
mb_str_split
mb_substr_count
str_replace
mb_strpos
mb_substr_replace
The problem is, if the function is not binary safe it will still probably work most of the time. This is not an acceptable level of fault tolerance for the professional. It must work with every string. Good luck with your projects!
The tl;dr solution to this is that having images in $lib is a dumb requirement.
I have instead put images in static/assets/<image> and updated the code as follows. It seems that the performance difference between $lib and static/ is irrelevant in this scenario.
<script>
export let title;
export let bg_img;
</script>
<div
class="top-level-card flex h-35 justify-center rounded-2xl bg-cover bg-center shadow-xl"
style:background-image={`url(/assets/${bg_img})`}
>
<p class="bg-primary text-text-1 h-fit rounded-b-2xl px-3 pb-1 text-xl">{title}</p>
</div>
my approach would be to script it...
I'm gonna guess python?
def main():
my_string = "array: ['thing1', 'thing2', 'thing3'],"
my_string= my_string[8:-2] #remove array: [ ],
split_string=my_string.split(",")
result="objects: {\n"
for item in split_string:
result+="\t{\n"
result+=f"\t\tname: {item}\n"
result+="\t},\n"
result+="},\n"
print(result)
main()
result:
objects: {
{
name: 'thing1'
},
{
name: 'thing2'
},
{
name: 'thing3'
},
},
The issue is likely with your JSON structure in the reportState request. The Google Home API expects a specific format where device states should be directly under the device ID, not nested under a "states" object.
Try this corrected structure:
{
` "requestId": "456e09af-20df-463c-936e-92519cd1f554",
"agentUserId": "xxx",
"payload": {
"devices": {
"xxxx": {
"online": true,
"temperatureUnitForUX": "C",
"temperatureRange": {
"minThresholdCelsius": -20,
"maxThresholdCelsius": 99
},
"temperatureAmbientCelsius": 1.2,
"humidityAmbientPercent": 0
}
}
}
}`
Additional troubleshooting steps:
Verify device ID:
Ensure "xxxx" matches the exact device ID from your SYNC response
Check supported traits: Make sure your device actually supports the traits you're reporting (temperature, humidity)
Validate state values: Ensure all values are within acceptable ranges and data types
Helpful resources:
Debug tips:
Enable detailed logging in your Node.js app to see the exact request being sent
Use the Actions Console to test your integration
Check that your JWT token has the correct scopes for reportState
Can you also share your device's SYNC response to verify the supported traits match what you're reporting?