René's URL Explorer Experiment


Title: Using the pyControl API to interface with the PC · pyControl · Discussion #124 · GitHub

Open Graph Title: Using the pyControl API to interface with the PC · pyControl · Discussion #124

X Title: Using the pyControl API to interface with the PC · pyControl · Discussion #124

Description: Using the pyControl API to interface with the PC

Open Graph Description: Hello everyone, I'm am working on rather experiments so my task files have gotten quite long. I've hit a problem where I am unable to add much code because the board runs out of memory when loading...

X Description: Hello everyone, I'm am working on rather experiments so my task files have gotten quite long. I've hit a problem where I am unable to add much code because the board runs out of memory when...

Opengraph URL: https://github.com/orgs/pyControl/discussions/124

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Using the pyControl API to interface with the PC","text":"

Hello everyone,
\nI'm am working on rather experiments so my task files have gotten quite long. I've hit a problem where I am unable to add much code because the board runs out of memory when loading the task on to it,
\nMy problem is with a variable validation function that i want to add to make sure they are correctly set before running the task.
\nI want to use the API to offload that validation to the PC however i have not been able to understand how to do it from the example file.
\nDo I manually run a script on the PC that listens to a port or is there a way for pyControl to manage it?
\nOr maybe I can skip using an API and add memory to the board?
\nThanks!

","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

The API script can only act upon changes to the task variables after they have been made, instead we would like to prevent setting/changing the variable in the first place if it is invalid.

\n

I have created an example for you that uses a custom controls dialog. Download and unzip validation_v1.zip. Place the input_validation.py in your tasks/ folder and place validation_gui.py in your controls_dialogs/ folder.

\n

Hope that is enough to get you started. Let me know if you have questions!

\n
\n \n \n \n\n CleanShot.2024-07-16.at.12.28.15.mp4\n \n \n\n \n
\n","upvoteCount":0,"url":"https://github.com/orgs/pyControl/discussions/124#discussioncomment-10064662"}}}

route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/orgs/:org/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:684476d5-8019-75e7-cab9-4eb08eb0bef2
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-id9044:16CF0C:8966D:BCB25:698EE703
html-safe-noncea5ca541cedc8bb4d7c1bbe1a360991faa9d70d21c940bf07cbb3997f6a223671
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDQ0OjE2Q0YwQzo4OTY2RDpCQ0IyNTo2OThFRTcwMyIsInZpc2l0b3JfaWQiOiIyMjUzOTIwNzU2MjA2MzMxNjUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1f58352cb50d633a9c1db5c37224a52ac5d05fa2195b4e8e7fa0e270bc44558f
hovercard-subject-tagdiscussion:6937300
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/orgs/pyControl/124/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/b2d46fd146c388c28e74450fed135e5ec1a38b2fb777e914e2f333463b1136aa/orgs/pyControl/discussions/124
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b2d46fd146c388c28e74450fed135e5ec1a38b2fb777e914e2f333463b1136aa/orgs/pyControl/discussions/124
og:image:altHello everyone, I'm am working on rather experiments so my task files have gotten quite long. I've hit a problem where I am unable to add much code because the board runs out of memory when loading...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba
turbo-cache-controlno-preview
octolytics-dimension-user_id58780920
octolytics-dimension-user_loginpyControl
octolytics-dimension-repository_id219033872
octolytics-dimension-repository_nwopyControl/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id219033872
octolytics-dimension-repository_network_root_nwopyControl/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6b91a7e6e46287d26887e3fb7a4161657bab8f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Forgs%2FpyControl%2Fdiscussions%2F124
pyControlhttps://patch-diff.githubusercontent.com/pyControl
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Forgs%2FpyControl%2Fdiscussions%2F124
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=pyControl%2Fcode
Reloadhttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
Reloadhttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
Reloadhttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
pyControl https://patch-diff.githubusercontent.com/pyControl
Overview https://patch-diff.githubusercontent.com/pyControl
Repositories https://patch-diff.githubusercontent.com/orgs/pyControl/repositories
Discussions https://patch-diff.githubusercontent.com/orgs/pyControl/discussions
Projects https://patch-diff.githubusercontent.com/orgs/pyControl/projects
Packages https://patch-diff.githubusercontent.com/orgs/pyControl/packages
People https://patch-diff.githubusercontent.com/orgs/pyControl/people
Overviewhttps://patch-diff.githubusercontent.com/pyControl
Repositorieshttps://patch-diff.githubusercontent.com/orgs/pyControl/repositories
Discussionshttps://patch-diff.githubusercontent.com/orgs/pyControl/discussions
Projectshttps://patch-diff.githubusercontent.com/orgs/pyControl/projects
Packageshttps://patch-diff.githubusercontent.com/orgs/pyControl/packages
Peoplehttps://patch-diff.githubusercontent.com/orgs/pyControl/people
Answered https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#discussioncomment-10064662
alustig3https://patch-diff.githubusercontent.com/alustig3
guykoy123 https://patch-diff.githubusercontent.com/guykoy123
Q&Ahttps://patch-diff.githubusercontent.com/orgs/pyControl/discussions/categories/q-a
Using the pyControl API to interface with the PC https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#top
guykoy123 https://patch-diff.githubusercontent.com/guykoy123
Answered https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#discussioncomment-10064662
alustig3https://patch-diff.githubusercontent.com/alustig3
Return to tophttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124#top
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
guykoy123 https://patch-diff.githubusercontent.com/guykoy123
Jul 15, 2024 https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#discussion-6937300
Give feedback.https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
alustig3 https://patch-diff.githubusercontent.com/alustig3
Jul 16, 2024 https://github.com/orgs/pyControl/discussions/124#discussioncomment-10064662
validation_v1.ziphttps://github.com/user-attachments/files/16253741/validation_v1.zip
View full answer https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#discussioncomment-10064662
Oldest https://patch-diff.githubusercontent.com/orgs/pyControl/discussions/124?sort=old
Newest https://patch-diff.githubusercontent.com/orgs/pyControl/discussions/124?sort=new
Top https://patch-diff.githubusercontent.com/orgs/pyControl/discussions/124?sort=top
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
alustig3 https://patch-diff.githubusercontent.com/alustig3
Jul 15, 2024 https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#discussioncomment-10052175
herehttps://github.com/pyControl/code/blob/master/api_classes/Example_user_class.py
herehttps://github.com/pyControl/code/blob/3d1ed1efd5b91cb45646a39dc16dde1f47b829de/tasks/example/api.py#L23
herehttps://github.com/orgs/pyControl/discussions/65
Give feedback.https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/guykoy123
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
guykoy123https://patch-diff.githubusercontent.com/guykoy123
Jul 16, 2024 https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#discussioncomment-10061587
Give feedback.https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/alustig3
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
alustig3https://patch-diff.githubusercontent.com/alustig3
Jul 16, 2024 https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#discussioncomment-10064662
validation_v1.ziphttps://github.com/user-attachments/files/16253741/validation_v1.zip
Give feedback.https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
guykoy123https://patch-diff.githubusercontent.com/guykoy123
https://patch-diff.githubusercontent.com/guykoy123
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
guykoy123https://patch-diff.githubusercontent.com/guykoy123
Jul 28, 2024 https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#discussioncomment-10170798
Give feedback.https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/alustig3
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
alustig3https://patch-diff.githubusercontent.com/alustig3
Jul 28, 2024 https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#discussioncomment-10172763
Give feedback.https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/alustig3
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
alustig3https://patch-diff.githubusercontent.com/alustig3
Jul 28, 2024 https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#discussioncomment-10173714
Give feedback.https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
guykoy123 https://patch-diff.githubusercontent.com/guykoy123
Aug 6, 2024 https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#discussioncomment-10250333
T1_wheel_moving.ziphttps://github.com/user-attachments/files/16506560/T1_wheel_moving.zip
Give feedback.https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/alustig3
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
alustig3https://patch-diff.githubusercontent.com/alustig3
Aug 6, 2024 https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#discussioncomment-10250587
Give feedback.https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/guykoy123
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
guykoy123https://patch-diff.githubusercontent.com/guykoy123
Aug 6, 2024 https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#discussioncomment-10250827
Give feedback.https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/guykoy123
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
guykoy123https://patch-diff.githubusercontent.com/guykoy123
Aug 6, 2024 https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#discussioncomment-10251060
Give feedback.https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/alustig3
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
alustig3https://patch-diff.githubusercontent.com/alustig3
Aug 6, 2024 https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#discussioncomment-10257824
code/source/gui/custom_controls_dialog.pyhttps://github.com/pyControl/code/blob/3d1ed1efd5b91cb45646a39dc16dde1f47b829de/source/gui/custom_controls_dialog.py#L78
3d1ed1ehttps://patch-diff.githubusercontent.com/pyControl/code/commit/3d1ed1efd5b91cb45646a39dc16dde1f47b829de
Give feedback.https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/guykoy123
Please reload this pagehttps://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
guykoy123https://patch-diff.githubusercontent.com/guykoy123
Aug 14, 2024 https://patch-diff.githubusercontent.com/pyControl/code/discussions/124#discussioncomment-10333591
Give feedback.https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Forgs%2FpyControl%2Fdiscussions%2F124
🙏 Q&A https://patch-diff.githubusercontent.com/orgs/pyControl/discussions/categories/q-a
https://patch-diff.githubusercontent.com/guykoy123
https://patch-diff.githubusercontent.com/alustig3
https://patch-diff.githubusercontent.com/pyControl/code/discussions/124
https://patch-diff.githubusercontent.com/settings/replies?return_to=1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.